-
Notifications
You must be signed in to change notification settings - Fork 33
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
Regression 1.7.3 to 1.7.4: __nccwpck_require__ is not defined #188
Comments
This might be related to the upgrade to
I was forced to upgrade ncc in this repo since it was using a really old version that didn't support newer Node.js versions. @guybedford Do you recall why ncc is needed? Can we drop it? |
Thank you! Downgrade to @vercel/webpack-asset-relocator-loader 1.7.3 fix this for me, thank you for posting this issue so I can google here! |
Remove the use of the deprecated Webpack MainTemplate. If `__nccwpck__` is not present, fall back to `__webpack_require__`. It fixes the regression from 1.7.3 to 1.7.4 vercel#188 and it also allows for compatibility with `rspack` https://github.com/web-infra-dev/rspack.
Is this being actively worked on? I see the October 8 fix has been sitting for a few months on the linux build not passing. |
After updating from
@vercel/webpack-asset-relocator-loader
1.7.3 to 1.7.4 the build still succeeds but the generated bundle now fails to start with the following error:Relevant webpack configuration:
Downgrading to 1.7.3 fixes the issue, without any other changes.
The text was updated successfully, but these errors were encountered: