@vue/compiler-sfc compile error after reinstalling the dependency of VUE2 old project
First, we need to see if the project has been upgraded to version 2.7.
Version 2.7
The plugin for template compilation is not supported /deep/this style is penetrated
There will be another little knowledge point at this time. The difference between version ^ and ~
This is the corresponding version in my project.
At this time, I reinstall the dependency and npm will automatically upgrade to the latest version.
"vue": "^2.6.11", "vue-template-compiler": "^2.6.11",
^ Only lock the first digit, ^3.1.4. If the latest version is upgraded to 3.2, if there is no lock file, the 3.2 version will be automatically downloaded, and the latest will be downloaded, and it will not be downloaded to the lower version.
~ Lock the first two digits, the principle is the same as above
Version locking scheme
- Fixed version
- npm+
- yarn+
Summarize
The above is personal experience. I hope you can give you a reference and I hope you can support me more.