-
Notifications
You must be signed in to change notification settings - Fork 914
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
Versions of vue-loader 16.6.0+ issues compile time error while using with vue-svg-loader #1879
Labels
Comments
I have the same problem. The reason is that vue-loader doesn't anymore process files without .vue or .html extensions. |
Any update on this? |
"help wanted". |
JuniorTour
added a commit
to JuniorTour/vue-loader
that referenced
this issue
Oct 12, 2021
This was referenced Oct 12, 2021
haoqunjiang
pushed a commit
that referenced
this issue
Oct 26, 2021
Fixed in v16.8.2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Version
16.6.0+
Reproduction link
github.com
Steps to reproduce
git clone git@github.com:jskitz/vue-loader-bug.git
npm install
to install the packages.npm run serve
. You will receive a compile time error that complains of a module parse failure.The problem occurs in
vue-loader
versions 16.6.0+ and above. If you want to fix the problem in this repository, you can install version16.5.0
and everything will work fine.If you want to see this running correctly, downgrade vue-loader to
16.5.0
:npm install vue-loader@16.5.0
, which will downgrade vue-loader from 16.8.1 to 16.5.0npm run serve
http://localhost:8080/
and you will see an SVG of a girl reading a book.What is expected?
It is expected that this should compile correctly with later versions of vue-loader instead of receiving a compile time error.
What is actually happening?
In versions greater than 16.5.0, the following compile time error is received:
Stack trace:
Because I've migrated my project to vue-3 and versions are updating quickly, I'm trying to stay up to date as much as possible. When upgrading vue-loader from 16.5.0 to 16.8.1, I started getting compile time errors when compiling all svg files in my project.
The text was updated successfully, but these errors were encountered: