pixijs / pixi-react

Write PIXI apps using React declarative style
https://pixijs.io/pixi-react/
MIT License
2.26k stars 173 forks source link

Error when using Stage #352

Closed duckforce closed 1 year ago

duckforce commented 1 year ago

Description

image image

Steps to reproduce

  1. I just added Stage at any components and get error "Cannot set properties of undefined (setting 'autoStart')" Maybe something wrong with webpack config or I should add special loader?

Additional info

saitonakamura commented 1 year ago

@duckforce I'm puzzled and struggling to reproduce via codesandbox, https://codesandbox.io/s/angry-wave-1ly78t?file=/src/App.tsx. Can you provide a repro?

duckforce commented 1 year ago

I solve problem with removing hot-loader @pmmmwh/react-refresh-webpack-plugin.

Could you solve this problem? @saitonakamura

saitonakamura commented 1 year ago

If you can provide a repro, we can look into it, but I'm not too well-versed in hot reload shenanigans to know how to approach it

lunarraid commented 1 year ago

Closing as no repro has been provided.