Base client class and some common codes for TSRPC.
See API Reference.
TSRPC Base Client
License: MIT License
Base client class and some common codes for TSRPC.
See API Reference.
我用npx create-tsrpc-app@latest
创建了vue+后端的例子, 先完成了vue的demo版本, 想在此基础上加上creator3.4.1的版本
导入creator后, 会出现如下的错误:
[Scene] 无法从 pack:///mods/fs/0/node_modules/tsrpc-base-client/index.js 解析出模块 k8w-extend-native。
at ExecutorSystem._throwUnresolved (C:\Program\CocosDashboard\resources\.editors\Creator\3.4.1\resources\app.asar\node_modules\@editor\lib-programming\dist\editor-systemjs\index.js:133:15)
at ExecutorSystem._resolve (C:\Program\CocosDashboard\resources\.editors\Creator\3.4.1\resources\app.asar\node_modules\@editor\lib-programming\dist\editor-systemjs\index.js:82:21)
at SystemJS.resolve (C:\Program\CocosDashboard\resources\.editors\Creator\3.4.1\resources\app.asar\node_modules\@editor\lib-programming\dist\editor-systemjs\index.js:26:23)
at C:\Program\CocosDashboard\resources\.editors\Creator\3.4.1\resources\app.asar\node_modules\@editor\lib-programming\static\executor\systemjs-bridge\out\index.js:355:37
at Array.map (<anonymous>)
at C:\Program\CocosDashboard\resources\.editors\Creator\3.4.1\resources\app.asar\node_modules\@editor\lib-programming\static\executor\systemjs-bridge\out\index.js:353:41
我对比过cocos商店中的疯狂打群架多人版
(我已使用相同的tsrpc-browser
版本)
排查到了一个差别
我的版本,在creator加载时,importMap的数据里,tsrpc-base-client下,只解析出了tslib,如图:
而疯狂打群架多人版本的frontend项目,在同样位置,importMap的数据,tsrpc-base-client下,却解析出了k8w-extend-native 如图:
但我并不知道为什么导致的
提供我的frontend项目:
frontend.zip
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.