Skip to content

Commit

Permalink
Update contributing doc with trouble shooting section for swc (#31265)
Browse files Browse the repository at this point in the history
## Documentation / Examples

- [x] Make sure the linting passes by running `yarn lint`
  • Loading branch information
huozhi committed Nov 10, 2021
1 parent edb5060 commit 82c09bd
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,24 @@ There are two options to develop with your local version of the codebase:
yarn install --force
```

or
#### Troubleshooting

- If you see the below error while running `yarn dev` with next:

```
Failed to load SWC binary, see more info here: https://nextjs.org/docs/messages/failed-loadin
```

Try to add the below section to your `package.json`, then run again

```json
"optionalDependencies": {
"@next/swc-linux-x64-gnu": "canary",
"@next/swc-win32-x64-msvc": "canary",
"@next/swc-darwin-x64": "canary",
"@next/swc-darwin-arm64": "canary"
},
```

### Develop inside the monorepo

Expand Down

0 comments on commit 82c09bd

Please sign in to comment.