Replies: 1 comment
-
It worked after deleting the package-lock and adding .nextjs in the root package.json file, followed by npm ci n npm run bootstrap. it generated new package-lock, which fixed the issue. hence closing this issue |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I am getting the below error, when do a production build, with next@12.3.0 package. i already tried with the .babelrc fix in the root as well as sub packages, independently, but the error still persists as below:
info - Creating an optimized production build...
info - Downloading WASM swc package...
warn - Attempted to load @next/swc-darwin-x64, but it was not installed
error - Failed to load SWC binary for darwin/x64, see more info here: https://nextjs.org/docs/messages/failed-loading-swc
Build step 'Execute shell' marked build as failure.
It's monorepo project, and have verified the package-lock.json in the root package as well as the sub packages, it has the entry for @next/swc-darwin-x64, and its related packages in it.
Could you please advice what i am missing here.
Beta Was this translation helpful? Give feedback.
All reactions