Webpack development mode freezes browser #1819
Replies: 5 comments
-
This sounds like a very specific issue with webpack / r3f. Although i use the pair often and haven't come across this. Can you please provide a minimal reproduction of the issue? I imagine it'll have to be a repo as opposed to a sandbox. |
Beta Was this translation helpful? Give feedback.
-
I also found this Issue which seems to be exactly the same problem: diegomura/react-pdf#336. Might be only an issue when using React lazy loading. I will prepare an repo with an minimal example. |
Beta Was this translation helpful? Give feedback.
-
This bug seems to only happen when using webpack module federation. I created a simple example to reproduce this: https://github.com/MDransfeld/r3f_webpack_bug. Starting host and app2 in production mode (yarn build && yarn serve) and app1 (contains the r3f code) in development mode (yarn serve) freezes the browser tab. |
Beta Was this translation helpful? Give feedback.
-
did you solve the problem? |
Beta Was this translation helpful? Give feedback.
-
making this a discussion for now to create more space for direct r3f bugs. this has to be a webpack issue. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
With
mode: 'development'
in the webpack config using even an empty<Canvas/>
freezes the browser tab.Stopping Javascript execution in the development tools shows that react-reconciler is stuck in an endless loop with this error message:
TypeError: Cannot set properties of undefined (setting 'getCurrentStack') at resetCurrentFiber
Workaround:
Used versions:
Beta Was this translation helpful? Give feedback.
All reactions