Closed bazo closed 1 year ago
Unfortunately, SWC Plugin system does not support Yarn PnP yet. Related issue
Here are the workarounds:
node-modules
as nodeLinker
option.@bazo
This error is intentional by yarn pnp, which occurs when the next
package tries to use the next-superjson-plugin
package, but next-superjson-plugin
is not included in the dependencies
of the next
package.
You can solve it by following the steps below.
packageExtensions
extension present in .yarnrc.yml
as follows:packageExtensions:
next@*:
dependencies:
next-superjson-plugin: "^0.5.2"
next-superjson-plugin
needs to be unplugged because native module is included. It would be nice if the package was automatically unplugged, but at the moment (version 0.5.2) it doesn't seem to be supported yet. So, unplug it manually with the following command.$ yarn unplug next-superjson-plugin
Verify Next.js canary release
Describe the bug
getting this error:
Additional context
i have a monorepo using yarn workspaces, yarn 3 & pnp
deps of this particular workspace