Skip to content
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

Updated failed to load error page to include info about node versions #34362

Merged
merged 3 commits into from Feb 15, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 3 additions & 1 deletion errors/failed-loading-swc.md
Expand Up @@ -8,7 +8,9 @@ SWC requires a binary be downloaded that is compatible specific to your system.

#### Possible Ways to Fix It

You might need to allow optional packages to be installed by your package manager (remove `--no-optional` flag) for the package to download correctly.
If you are working from an M1 mac and running a node version above 14.x (such as 16), trying to install dependencies may result in an `SWC` error. Try removing your `node_modules` and downgrading your node version to 14.x, then installing dependencies again.
molebox marked this conversation as resolved.
Show resolved Hide resolved

Alternatively, you might need to allow optional packages to be installed by your package manager (remove `--no-optional` flag) for the package to download correctly.

If SWC continues to fail to load you can opt-out by disabling `swcMinify` in your `next.config.js` or by adding a `.babelrc` to your project with the following content:

Expand Down