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

Yarn 2+ PnP: Error: systemjs-webpack-interop tried to access webpack... [webpack-config-single-spa] #392

Open
lpicchi opened this issue Nov 23, 2023 · 1 comment
Labels
help wanted Extra attention is needed

Comments

@lpicchi
Copy link

lpicchi commented Nov 23, 2023

When using Yarn 2+ PnP get error:

Error: systemjs-webpack-interop tried to access webpack (a peer dependency) but it isn't provided by its ancestors; this makes the require call ambiguous and unsound.
Required package: webpack
Ancestor breaking the chain: webpack-config-single-spa@npm:5.3.0

Webpack should be declared as peerDependency in webpack-config-single-spa and all webpack-config-single-spa-* projects

@lpicchi
Copy link
Author

lpicchi commented Nov 23, 2023

  • Workaround:

In .yarnrc.yml

pnpMode: loose
pnpFallbackMode: dependencies-only

@MilanKovacic MilanKovacic added the help wanted Extra attention is needed label Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants