Bug: Cannot read properties of undefined (reading 'current')
Current Behavior
Hi. I used @inlet/react-pixi (version: 6.8.0) and pixi.js-legacy (version: 5.1.5) and it was working fine.
I wanted to upgrade, so a removed @inlet/react-pixi and install newest @react/pixi (version: 7.1.2) and pixi.js-legacy (version: 7.4.2) and with this combination a have an error:
Uncaught TypeError: Cannot read properties of undefined (reading 'current') and application dies.
I tried to use @inlet/react-pixi (version: 6.8.0) with pixi.js-legacy (version: 7.4.2) and it works fine, so problem is upgrading from @inlet/react-pixi to @react/pixi. Any ideas what is going on ?
Expected Behavior
Application works and not throwing error.
Steps to Reproduce
Just try to render simplest thing, like:
<Stage width={800} height={600} options={{ background: 0x1099bb }}>
<Container x={200} y={200}>
<Text
text="Hello World"
anchor={0.5}
x={220}
y={150}
/>
</Container>
</Stage>
I think that it's probably with my app configuration but i have no idea what can cause this problem.
Environment
-
@pixi/reactversion: 7.1.2 -
pixi.jsversion: 7.4.2 -
Reactversion: ^17.0.0 -
ReactDOMversion: ^17.0.0 - Browser & Version: Chrome 128.0.6613.119
- OS & Version: Ubuntu 22.04.4
Possible Solution
No response
Additional Information
No response