-
Notifications
You must be signed in to change notification settings - Fork 27.5k
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
Getting following error with dynamic import: Warning: Did not expect server HTML to contain a <div> in <div>. #8186
Comments
Sorry, but we cannot help unless a complete/full reproducible demo is provided. |
This error occurs if you import a component dynamically and regularly on different pages/components. /pages/foo.js
const Component = dynamic(import('./component') /pages/bar.js
import Component from './component' |
This is exactly what's happening to my app right now! Importing the dynamic component in many places will result in this error, can we reopen this issue? |
was the above issue solved?? |
I am still getting this warning in my console and it break my design with |
This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you. |
Bug report
Describe the bug
I am getting the following error when rendering components which are loaded through dynamic imports:
Warning: Did not expect server HTML to contain a <div> in <div>.
Elements render fine but get reloaded/rerendered when reactjs loads.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
pages/index.js
Expected behavior
It should not give a warning and it should not rerender/reload the elements when react loads.
System information
Additional context
Looks related to #6904 but they say it is fixed. The error still happens though.
The text was updated successfully, but these errors were encountered: