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
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:
/Users/.../dist/index.js:198193
const googleProtoFilesDir = __nccwpck_require__.ab + "protos";
^
ReferenceError: __nccwpck_require__ is not defined
at 38020 (/Users/.../api/dist/index.js:198193:29)
at __webpack_require__ (/Users/.../dist/index.js:774516:42)
at 52013 (/Users/.../api/dist/index.js:198899:16)
at __webpack_require__ (/Users/.../dist/index.js:774516:42)
at new LanguageServiceClient (/Users/.../dist/index.js:50263:27)
at 80046 (/Users/.../dist/index.js:661168:16)
at __webpack_require__ (/Users/.../dist/index.js:774516:42)
at 49801 (/Users/.../dist/index.js:661353:38)
at __webpack_require__ (/Users/.../dist/index.js:774516:42)
at 96739 (/Users/.../dist/index.js:660922:49)
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.
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: