-
Notifications
You must be signed in to change notification settings - Fork 186
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
Update ResolverFactory.js #286
Conversation
Issue webpack#263 is preventing my company from upgrading to Webpack v5. This was the proposed fix that worked well for us so I created a PR.
Codecov Report
@@ Coverage Diff @@
## master #286 +/- ##
=======================================
Coverage 94.93% 94.93%
=======================================
Files 39 39
Lines 1579 1579
=======================================
Hits 1499 1499
Misses 80 80
Continue to review full report at Codecov.
|
Please provide example how we can reproduce the problem |
@alexander-akait : https://github.com/ferdinando-ferreira/enhanced-resolve-pnpapi-bug
|
@ferdinando-ferreira Why do you bundle webpack? You should ignore this module ( |
@alexander-akait : To provide the minimal usecase requested. Regardless of usefulness it provides the exact error case reported:
when it should be
because there is no pnpapi package. Would you prefer a "realistic" use case that would hit the same error? |
Please read https://yarnpkg.com/advanced/pnpapi, |
You are correct! The root cause of the error must be then the original issue submitter accidentally bundling something with a require to webpack (or other package depending on @dlredden, @dstampher: any chance that's the case? |
Yep, in this case |
If you want to use PnP with the compiled bundle, it's not externals: {
pnpapi: true
} |
Issue #263 is preventing my company from upgrading to Webpack v5. This was the proposed fix that worked well for us so I created a PR.