New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NextJS 12.3.x doesn't remove FOUC style (body hidden) #41476
Comments
Can reproduce, getting the following error in the console Uncaught ReferenceError: exports is not defined
at eval (react-refresh-runtime.development.js?7e84:645:1)
at eval (react-refresh-runtime.development.js?7e84:657:3)
at ./node_modules/next/dist/compiled/react-refresh/cjs/react-refresh-runtime.development.js (react-refresh.js?ts=1666001933146:41:1)
at options.factory (webpack.js?ts=1666001933146:667:31)
at __webpack_require__ (webpack.js?ts=1666001933146:37:33)
at fn (webpack.js?ts=1666001933146:322:21)
at eval (runtime.js?9c6e:6:3)
at ./node_modules/next/dist/compiled/react-refresh/runtime.js (react-refresh.js?ts=1666001933146:52:1)
at options.factory (webpack.js?ts=1666001933146:667:31)
at __webpack_require__ (webpack.js?ts=1666001933146:37:33) |
I noticed that what triggers this error is the project directory name. The pattern is:
Maybe this fact should be added to the report title. |
This seems to have been introduced in #40679 |
) Fixes #41476, ref #40679 ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have a helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
…cel#41484) Fixes vercel#41476, ref vercel#40679 ## Bug - [x] Related issues linked using `fixes #number` - [x] Integration tests added - [ ] Errors have a helpful link attached, see `contributing.md` ## Feature - [ ] Implements an existing feature request or RFC. Make sure the feature request has been accepted for implementation before opening a PR. - [ ] Related issues linked using `fixes #number` - [ ] Integration tests added - [ ] Documentation added - [ ] Telemetry added. In case of a feature if it's used or not. - [ ] Errors have a helpful link attached, see `contributing.md` ## Documentation / Examples - [ ] Make sure the linting passes by running `pnpm lint` - [ ] The "examples guidelines" are followed from [our contributing doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Verify canary release
Provide environment information
What browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
Describe the Bug
NextJS in dev mode adds this markup to the html head:
As a result the page is not displayed.
Expected Behavior
It should remove this FOUC protection, or what is its name.
Link to reproduction
https://github.com/OnkelTem/demo-styled-jsx
To Reproduce
To reproduce with the referenced repository:
OR to reproduce from scratch:
THEN open the page in your browser.
The text was updated successfully, but these errors were encountered: