Vercel deployment give an "error - failed to load SWC binary"
See original GitHub issueWhat version of Next.js are you using?
12.0.0
What version of Node.js are you using?
Vercel version
What browser are you using?
All
What operating system are you using?
macOS
How are you deploying your application?
next build
Describe the Bug
I upgraded my Next JS App to version 12.0.0 and it’s work perfectly in my machine. When i deploy in Vercel, the vercel building step has an error “error - failed to load SWC binary”.
<html><head></head><body>
21:06:10.609 | warn - You have enabled experimental feature(s).
-- | --
21:06:10.610 | warn - Experimental features are not covered by semver, and may cause unexpected or broken application behavior. Use them at your own risk.
21:06:10.610 |
21:06:10.610 | warn - SWC minify beta enabled. https://nextjs.org/docs/messages/swc-minify-enabled
...
21:06:10.634 |
21:06:10.685 | info - Checking validity of types...
21:06:15.144 | info - Creating an optimized production build...
21:06:16.799 | Can not load bindings
21:06:16.799 |
21:06:16.800 | error - failed to load SWC binary, see more info here: https://nextjs.org/docs/messages/failed-loading-swc
21:06:16.823 | Error: Command "npm run build" exited with 1
Expected Behavior
Just i want deploy my app in vercel
To Reproduce
read bug description
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Next failed to load SWC binary - Stack Overflow
The error is occurring because Next.js is using Rust-based compiler SWC to compile JavaScript/TypeScript now and for this SWC requires a binary ......
Read more >Failed to load SWC feedback · Discussion #30468 - GitHub
This is a feedback thread for when your application fails to load the SWC binaries on a specific system. Please provide:.
Read more >failed-loading-swc - Next.js
SWC requires a binary be downloaded that is compatible specific to your system. In some cases this binary may fail to load either...
Read more >How to fix failed to load SWC binary NextJS - Tutorial + Tips
How to fix failed to load SWC binary NextJS ; Remove node_modules directory and package-lock.json; Run npm i to install the dependecncies ;...
Read more >Failed to load SWC binary for win32/x64, error ... - YouTube
step-1 by adding a file .babelrc to your projectstep-2 add this code in .babelrc file :{ "presets": ["next/babel"]}step-3 yarn run dev.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hi, we updated the SWC packages in the latest version of Next.js
v12.0.1
, please update and give it a try!This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.