Cannot read properties of undefined (reading 'Node')
when I use pixi layout with pixi react it was working but I found it has error message
it's my repo https://github.com/khmer-chi/pixi-layout-with-react-bug-report
StrictMode make this bug,I remove it, okay now
I meet this issue too. However, we cannot remove StrictMode in production environment.
Thanks for raising this issue and proving an example, really appreciate it!
I’ll take a look as soon as I can and follow up here with any updates
also had this issue; after digging in the code a bit, it seems to be because a Layout is being created before yoga has been initialized. from what I understand, yoga is initialized as part of the 'LayoutSystem' extension, which is in turn loaded when Application.init is called.
the code which was requesting the Layout was before Application.init; moving it to after fixed all issues
Like @ei-pi said it's when a Pixi object is constructed with a layout setting BEFORE Application.init finish.
In my case I was constructing my "scenes" at the same time as the application would initialize and "mount" them once the stage is ready.
Which worked well until I added layouts, now I would have to delay all construction until after the end of the initialization. Not a big deal bug a pretty big gotcha.