diff --git a/errors/failed-loading-swc.md b/errors/failed-loading-swc.md index f1cc951c52fe819..0e7d90d60305f89 100644 --- a/errors/failed-loading-swc.md +++ b/errors/failed-loading-swc.md @@ -10,6 +10,8 @@ SWC requires a binary be downloaded that is compatible specific to your system. When on an M1 Mac and switching from a Node.js version without M1 support e.g. v14 to a version with e.g. v16, you may need a different swc dependency which can require re-installing `node_modules` (`npm i --force` or `yarn install --force`). +On Windows make sure you have Microsoft Visual C++ Redistributable installed. https://docs.microsoft.com/en-us/cpp/windows/latest-supported-vc-redist + 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: