Comments (2)
请问require的路径是正确的吗?加载sprite-wxapp就报错,不加载没事?
看错误信息不太像sprite-wxapp本身执行的问题
from sprite-wxapp.
可以了,在mpvue中使用的话也需要通过mpvue安装,不过需要直接安装sprite-wxapp模块,然后在需要的页面通过import引用进来就行了
import { Scene,Sprite, Label } from 'sprite-wxapp/dist/sprite-wxapp'
贴张图吧:
先把sprite-wxapp模块安装一下
打印
from sprite-wxapp.
Related Issues (17)
- event.dispatchEvent 不起作用?
- 项目说明文件 有问题,直接复制代码导致错误,一般看不出来 HOT 1
- 小程序版本最低支持的基础库是多少呢?
- Path不支持getPointsAtLength()方法? HOT 1
- 小游戏 Sprite 无法加载图片 HOT 5
- 小游戏中事件不工作 HOT 2
- label使用引入的字体真机上无效
- 小程序内touch事件未生效
- 微信小程序版本怎么实现snapshot
- 这个小程序版不支持type=2d的canvas,啥时候更新?
- 小程序Label方法在真机上不显示 HOT 2
- demo里app.json的'pages/logs/logs'的pagePath需要删掉哈 HOT 1
- 微信小程序自定义组件中使用spritejs 无法显示 HOT 1
- 真机运行,背景颜色不能正确显示。 HOT 3
- 无法响应touchend事件 HOT 1
- 在安卓手机:小米 5s,系统 MIUI 9.6 | 稳定版,微信版本 6.6.6,Sprite 设置 borderRadius 属性,界面裁剪错 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sprite-wxapp.