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
In Jenkins, a bunch of Playwright browser tests fail with ChunkLoadError at the first React.Lazy call.
Error Message
browser.error ChunkLoadError: Loading chunk bookmarks-menu failed.
(missing: http://localhost:9000/bookmarks-menu.chunk.js)
at __webpack_require__.f.j (http://localhost:9000/application.js:10948:16)
at http://localhost:9000/application.js:10728:30
at Array.reduce (<anonymous>)
at __webpack_require__.e (http://localhost:9000/application.js:10727:38)
at eval (webpack://@company/project/./web/application/src/MainNavigation.jsx?9bc8:135:105)
at lazyInitializer (webpack://@company/project/./node_modules/react/cjs/react.development.js?c6b1:1358:20)
at mountLazyComponent (webpack://@company/project/./node_modules/react-dom/cjs/react-dom.development.js?f4dd:19939:19)
at beginWork (webpack://@company/project/./node_modules/react-dom/cjs/react-dom.development.js?f4dd:21588:16)
at beginWork$1 (webpack://@company/project/./node_modules/react-dom/cjs/react-dom.development.js?f4dd:27421:14)
at performUnitOfWork (webpack://@company/project/./node_modules/react-dom/cjs/react-dom.development.js?f4dd:26555:12)
console.error The above error occurred in one of your React components:
at Lazy
at Suspense
at div
at P (webpack://@company/project/./node_modules/styled-components/dist/styled-components.browser.esm.js?b32b:30:19660)
at div
at P (webpack://@company/project/./node_modules/styled-components/dist/styled-components.browser.esm.js?b32b:30:19660)
at section
at P (webpack://@company/project/./node_modules/styled-components/dist/styled-components.browser.esm.js?b32b:30:19660)
at Le (webpack://@company/project/./node_modules/styled-components/dist/styled-components.browser.esm.js?b32b:30:17338)
That chunk that it was trying to load is definitely there. The server is not returning a 404.
We not see these errors when running the same tests on our laptops or when switching back to Webpack.
I've been patiently testing every rspack release since January hoping it would just get magically fixed by the team, but now I'm wondering if there's something I'm doing wrong.
Any suggestions on config changes or how I can figure out why we are getting this error?
Thank you!
config, fully computed right before it's passed to rspack
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi!
In Jenkins, a bunch of Playwright browser tests fail with
ChunkLoadError
at the firstReact.Lazy
call.Error Message
That chunk that it was trying to load is definitely there. The server is not returning a 404.
We not see these errors when running the same tests on our laptops or when switching back to Webpack.
I've been patiently testing every rspack release since January hoping it would just get magically fixed by the team, but now I'm wondering if there's something I'm doing wrong.
Any suggestions on config changes or how I can figure out why we are getting this error?
Thank you!
config, fully computed right before it's passed to rspack
Beta Was this translation helpful? Give feedback.
All reactions