-
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
Error of dynamic component and "Loading chunk * failed" #4642
Comments
@timneutkens any thoughts? |
above is next@6.0.3 shows error: "GET http://localhost:3000/_next/webpack/6-undefined.js 404 (Not Found)" below i try next@6.0.4-canary.8 also have errors but a little bit different shows: "GET http://localhost:3000/_next/webpack/6.js 404 (Not Found)", without screenshot: |
Duplicate of #3775 |
thx. finally, my temporary solution for development environment:
const dynamics = () => [
import('../components/hello1'),
import('../components/hello2'),
import('../components/hello3'),
import('../components/hello4')
]
import '../lib/common' Thats it. the script.src = __webpack_require__.p + "" + ({"0":"main.js","1":"bundles/pages/_error.js","2":"bundles/pages/_app.js","4":"chunks/components_hello1_2118a1d2a4935c3fb995190faa8dbd95","5":"chunks/components_hello4_4c239e4dc0cd2618c3e111f41c791a1c","6":"chunks/components_hello3_693127fc8d6e8d58856e50574974e451","7":"chunks/components_hello2_23440136ce0953a1f9b2387ab3c13db4","8":"bundles/pages/index.js"}[chunkId]||chunkId) + ".js"; for production, just comment out |
Bug report
you may see the video first: https://cl.ly/1Y0g0J43273y
Describe the bug
each page has a dynamic component.
link to one of other pages, and the dynamic component load failed
To Reproduce
example: https://github.com/comus/with-dynamic-import
Expected behavior
go to every page without error
Screenshots
https://cl.ly/1Y0g0J43273y
System information
Additional context
none
The text was updated successfully, but these errors were encountered: