Unverified Commit 59712b16 authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Add note about no-optional to swc error doc (#30566)

parent 4c38c89c
...@@ -8,6 +8,8 @@ SWC requires a binary be downloaded that is compatible specific to your system. ...@@ -8,6 +8,8 @@ SWC requires a binary be downloaded that is compatible specific to your system.
#### Possible Ways to Fix It #### 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 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: 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:
```json ```json
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment