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
Then edit packages/react-scripts/template/src/App.js to have an empty block in the render method:
Press save. The browser will reload.
Then edit it to remove the empty block and press save.
You will see the error:
Unfortunately some internal state appears corrupted because even if I refresh the page, I keep getting the broken bundle. It only gets fixed by a restart of the server.
The text was updated successfully, but these errors were encountered:
It looks like a caching issue caused by babel-loader. I probably had some version of the module cached with CommonJS transform applied, and it was getting embedded into the bundle. Deleting node_modules/.cache fixed the issue.
Cross-posting from webpack/webpack#3974 (comment) for visibility.
I can consistently reproduce this in CRA codebase:
Then edit
packages/react-scripts/template/src/App.js
to have an empty block in therender
method:Press save. The browser will reload.
Then edit it to remove the empty block and press save.
You will see the error:
Unfortunately some internal state appears corrupted because even if I refresh the page, I keep getting the broken bundle. It only gets fixed by a restart of the server.
The text was updated successfully, but these errors were encountered: