-
-
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
Error: Rule can only have one resource source with Webpack 5 #12640
Comments
For maintainers only:
|
|
Problem here https://github.com/vuejs/vue-loader/blob/master/lib/plugin.js#L1, due webpack hoist you have |
|
You can see it here
you use |
I'm willing to consider moving @alexander-akait Has the webpack team considered supporting a streaming interface? Then I could just deprecate |
All loaders and plugins have
No we don't have streaming interface, nobody request this, maybe because they found |
Bug report
What is the current behavior?
Webpack 5.0 fails to build with the error: "Rule can only have one resource source".
If the current behavior is a bug, please provide the steps to reproduce.
I have create a minimal repro over at https://github.com/skaut/shared-drive-mover/tree/webpack-5-issue-repro
This issue consist of many "moving parts", removing any of them leads to it not manifesting.
My current behaviour of the repro is as follows:
This only happens when invoking webpack through webpack-stream, but the author of that thinks the issue lies in webpack. See shama/webpack-stream#233.
What is the expected behavior?
No crash and correct output in the
dist
directory - as it is with webpack@v4.Other relevant information:
webpack version: 5.21.2
Node.js version: 14.15.5
Operating System: Debian testing
Additional tools: gulp, ts-loader, typescript, vue, vue-loader, webpack-stream
The text was updated successfully, but these errors were encountered: