-
-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
[webpack 5] Yarn v2 can't resolve file loader in docs plugin #4778
Comments
It's something I noticed during the Webpack 5 PR. Our Yarn2 e2e test did not use the latest version of Docusaurus. This should be fixed once we migrate to the new assets system: #4708 |
Any update on this? The PR has been inactive for 2 months now. The temporary solution doesn't work although I have
|
@HazyFish this PR is stuck until I figure out a proper way to solve this problem: webpack/webpack#12900 (comment) Your issue does not look related to Yarn2/file-loader/url-loader but more about Webpack not polyfilling nodejs modules anymore. You can add the missing polyfills yourself if you need to: create a local docusaurus plugin that modify the existing Webpack configuration to add that polyfill |
oh, Is there any progress on this issue? testing-library/testing-library-docs#928
|
🐛 Bug Report
On webpack 5, Yarn 2 can't resolve file-loader when building docs.
Have you read the Contributing Guidelines on issues?
Yes
To Reproduce
Clone https://github.com/rdilweb/rdil.rocks and update the Docusaurus version in the
/docs
project - thenyarn && yarn build
.Expected behavior
Build passes.
Actual Behavior
file-loader not found error.
Your Environment
Reproducible Demo
https://github.com/rdilweb/rdil.rocks
The text was updated successfully, but these errors were encountered: