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

Requires wrong version of webpack when two are present in project, compilation fails #1792

Closed
boutell opened this issue Feb 8, 2021 · 1 comment

Comments

@boutell
Copy link

boutell commented Feb 8, 2021

Please see:

webpack/webpack#12606

Because a single major version of this loader supports three different major versions of webpack, but assumes that "require" will find the right one, it will find the wrong one if the project level and a dependency of the project depend on different versions of webpack as described in that issue.

In this comment:

webpack/webpack#12606 (comment)

(And some of the related comments)

... A better resolution is proposed, but requires implementation here now that webpack has done their bit starting in webpack 5 to make it possible to find what you need without using "require".

html-webpack-plugin used to have a similar issue, but in their new major release they only list webpack 5 as a compatible peer dependency. That strategy also solves the issue.

@vue-bot
Copy link

vue-bot commented Feb 8, 2021

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!

@vue-bot vue-bot closed this as completed Feb 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants