Closed SampsaKaskela closed 1 year ago
Are you able to post the exact errors you're seeing?
We've not tried to use the package with vite so far, only webpack, so I'm not totally sure about compatibility.
Here is the full error. It is quite long. Same errors happen with CRA too so this is not Vite specific.
What version of node are you running? I haven't had a chance to check out your code yet, but I have a similar setup running with no problems. My hunch is that peer-dependencies aren't being installed.
Node 16.14.0 and NPM 8.3.1
Edit: Did update to Node 18.14.0 and NPM 9.3.1 Issue still exists.
Hey @SampsaKaskela it seems you are running into the same issue mentioned here https://github.com/pixijs/pixijs/issues/8977
Could you try uninstalling / reinstalling pixi as you may have multiple versions installed at the same time
I tried removing node_modules but that was not the issue. I deleted package-lock.json and installed again and now no longer errors. I checked what was difference between package-lock.json files and in old one it was installing @pixi/core v6 for some reason and that was the issue.
So issue seems to be resolved now. Thank you @Zyie
Current Behavior
App crashes with a lot of import errors to @pixi/core
Expected Behavior
App should launch normally
Steps to Reproduce
npm create vite@latest
npm install pixi.js @pixi/react
npm run dev
Environment
@pixi/react
version: 7.0.0pixi.js
version: 7.1.2React
version: 18.2.0ReactDOM
version: 18.2.0Possible Solution
No response
Additional Information
No response