-
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
Compiling error when the template of the .vue file has the attribute lang="html" #1443
Comments
Did U find any solution ? It is troubling me too 😭 |
I'm struggling into this too, if I'm correct this is more from EDIT: the only quick and easy fix right now (if you can touch the files) is to remove the |
This proves problematic for a component that uses a language other than html. For example, we use pug for all of our vue component files. I'm getting the same error, but also can see a message beneath the template:
When I nest the entire component in a div, the compiler gives me the same error for another component, then another, then another... It seems as though, in my case at least, the loader doesn't recognize |
this problem is happen to me too. How did you solve it? |
Happens to me as well, my workaround was setting my version constraint to "<15.0.0" |
Can you explain me the steps? Thanks! |
Modify your package.json file to have |
Now is finally working , thanks! this is my final webpack config with chunks. `const mix = require('laravel-mix'); mix.js('resources/js/app.js', 'public/js') |
just remove lang="html" attribute can work |
in file |
sorry . the Reproduction link is Invalid. I delete it |
@posva This issue still seems to exists in vue-loader 15.7.2. When importing templates via src. The following vue file:
Results in this error
Downgrading vue-loader to version 14 fixes the issue. Is this an vue-loader issue or could this be a config issue? I am using laravel-mix. |
It could be a config issue but we would need a repro using the vue cli or bare webpack + vue-loader. |
Version
15.2.6
Reproduction link
https://github.com/eltonchan/test_vue_loader
Steps to reproduce
1、use vue cli3 create application (vue cli3 default use 15 version for vue-loader)
2、add html-loader to webpapck Configuration
3、.vue file template add lang="html" attribute
4、npm run serve
What is expected?
compiling success
What is actually happening?
error in ./src/App.vue?vue&type=template&id=7ba5bd90&lang=html&
Module Error (from ./node_modules/vue-loader/lib/loaders/templateLoader.js):
(Emitted value instead of an instance of Error)
Error compiling template:
By the way, in 14 version No such problem。
The text was updated successfully, but these errors were encountered: