hairyf / vue3-pixi

Lightweight and flexible Vue 3 library for creating PixiJS applications.
https://vue3-pixi.vercel.app/
MIT License
226 stars 23 forks source link

样例渲染失败 #120

Closed lishq closed 5 months ago

lishq commented 5 months ago

chunk-U6BEPC57.js?v=7cf50261:2377 Uncaught TypeError: Class constructor _Sprite cannot be invoked without 'new' at renderComponentRoot (chunk-U6BEPC57.js?v=7cf50261:2377:13) at ReactiveEffect.componentUpdateFn [as fn] (chunk-U6BEPC57.js?v=7cf50261:7466:46) at ReactiveEffect.run (chunk-U6BEPC57.js?v=7cf50261:435:19) at instance.update (chunk-U6BEPC57.js?v=7cf50261:7597:17) at setupRenderEffect (chunk-U6BEPC57.js?v=7cf50261:7607:5) at mountComponent (chunk-U6BEPC57.js?v=7cf50261:7375:7) at processComponent (chunk-U6BEPC57.js?v=7cf50261:7329:9) at patch (chunk-U6BEPC57.js?v=7cf50261:6795:11) at mountChildren (chunk-U6BEPC57.js?v=7cf50261:7043:7) at processFragment (chunk-U6BEPC57.js?v=7cf50261:7259:7) 

{ "name": "pixi-front", "version": "0.0.0", "private": true, "type": "module", "scripts": { "dev": "vite", "build": "run-p type-check \"build-only {@}\" --", "preview": "vite preview", "build-only": "vite build", "type-check": "vue-tsc --build --force" }, "dependencies": { "pixi.js": "^7.4.2", "vue": "^3.4.21", "vue-router": "^4.3.0", "vue3-pixi": "^0.9.2" }, "devDependencies": { "@tsconfig/node20": "^20.1.4", "@types/node": "^20.12.5", "@vitejs/plugin-vue": "^5.0.4", "@vue/tsconfig": "^0.5.1", "npm-run-all2": "^6.1.2", "typescript": "~5.4.0", "vite": "^5.2.8", "vue-tsc": "^2.0.11" } }

image