-
Notifications
You must be signed in to change notification settings - Fork 915
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
vue-loader 17 compatibility with vue 2 #1919
Comments
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! |
I've hit this issue too. @abea did you solve this in your project? |
@hisuwh Not solved. It turns out |
Why does it take this issue to find this absolutely essential information.. |
For those, who are landing here or here googling why their vue v2.7 webpack build doesn't work with vue-loader v17. I found a way to make vue-loader v17 work with vue v2.7, actually it requires only a few code changes and can be done with (rather hacky) monkey patching. It wasn't highly tested and for your own risk, but at least work for my components, vue v2.7.14 and vue-loader v17.2.2. Since I don't want this code to be lost, and don't know where is better to store it, I'll post it here. Order of imports and functions is important.
|
I'm attempting to bump from v15 to v17 on a Vue 2 project. I updated the require statement but get the error
Error: Cannot find module 'vue/compiler-sfc'
when running the build. I see some places there is atry catch
to fall back to'@vue/compiler-sfc'
when installed, butvue/compiler-sfc
is still used elsewhere, which I understand is coming from Vue 3.Is there a way I'm not seeing to use v17 with Vue 2? 15 is flagged by
npm audit
, blocking our normal CI flow.The text was updated successfully, but these errors were encountered: