question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vercel deployment give an "error - failed to load SWC binary"

See original GitHub issue

What 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:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
ijjkcommented, Oct 27, 2021

Hi, we updated the SWC packages in the latest version of Next.js v12.0.1, please update and give it a try!

0reactions
balazsorban44commented, Jan 27, 2022

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found