You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I make an empty Vite TS app, copy the example MyComponent code to the project from beta branch's description I have got full white screen and an error in chrome console:
@pixi_react.js?v=f2c1ca38:11519 Uncaught TypeError: Cannot read properties of undefined (reading 'S')
at module2.exports (@pixi_react.js?v=f2c1ca38:11519:61)
at @pixi_react.js?v=f2c1ca38:13153:18
module2.exports @ @pixi_react.js?v=f2c1ca38:11519
(anonymous) @ @pixi_react.js?v=f2c1ca38:13153
The place where the error happens is here (last row):
Unfortunately, I haven't been able to reproduce this issue. I did notice the sandbox is using Pixi.js 8.2.6, but Pixi.js is up to v8.7.3 now. Could you try updating Pixi and see if that resolves your issue?
If not, I'm gonna need a repo with a minimal reproduction so I can pull it down and test locally.
We've encountered this issue in the current beta release. As a temporary workaround, reverting to version 8.0.0-beta.16 seems to resolve the problem. For reference, our test setup includes:
@trezy I have tried, it is not working with the latest versions and React 18.x.
I will upload a basic project somewhere in the next days.
The latest version that worked for me eighter was the beta16 as @BBato said.
@teddybee I encountered the same issue. It seems to be related to using @pixi/react beta 21. Try downgrading to beta 16, and everything should work as expected. Everything worked fine with React 18 up to beta 16, but versions after beta 16 are not compatible with React 18. If you want to use the latest beta version, you'll need to upgrade React to version 19.
Current Behavior
If I make an empty Vite TS app, copy the example MyComponent code to the project from beta branch's description I have got full white screen and an error in chrome console:
The place where the error happens is here (last row):
Expected Behavior
Should be working without error.
Steps to Reproduce
Create a new Vite project with yarn and react-ts template.
Add react pixi dependencies
yarn add pixi.js@^8.2.6 @pixi/react@beta
Copy MyComponent code to a component form here and put it in the App component.
Run the app with yarn dev
Environment
@pixi/react
version: 8.0.0-beta.21pixi.js
version: 8.2.6React
version: 18.3.1ReactDOM
version: 18.3.1Possible Solution
No response
Additional Information
Unfortunately it is only happening on my PC, the stackblitz example is running well...
P.S: My friend tested it on MacOS, and got the same error.
The text was updated successfully, but these errors were encountered: