-
Notifications
You must be signed in to change notification settings - Fork 27k
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
dynamic import request 404 in production mode #2073
Comments
@nndung179 yes. This is a bug. In the production mode, due to code splitting, the module is moved to the app.js. So, there's nothing to live inside the dynamic component. So, that's empty. That's why this cause an error. |
As a fix for now, do not try to import a module both via dynamic import and normal import. |
@arunoda @timneutkens I just tested in version |
@nndung179 The fix is merged in master but not part of version |
Thank @cdock1029. Yes I hope it will be there soon. |
@nndung179 @cdock1029 try the latest beta: |
Nice. |
Hi guys,
I made a demo to display news from API & using a new feature
dynamic
import. While in development mode it works well. But in production mode, some components were not loaded successfully. Here is a repohttps://github.com/nndung179/next.js/tree/feature/refactor_layout_with_material_ui
The text was updated successfully, but these errors were encountered: