-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
"<" in pug doesn't work #3973
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
Comments
This is a problem with pug itself. Please refer to the other issues for some hints: https://github.com/vuejs/vue/issues?utf8=%E2%9C%93&q=is%3Aissue%20is%3Aclosed%20pug%20 |
@posva As I mentioned:
|
which version of vue-loader is installed? |
This may be an issue related to https://github.com/vuejs/vue/blob/dev/src/compiler/parser/html-parser.js#L47 . Pug is not a xml-like templting engine, so it can contain anything like script tag and style tag. Without specific treat, "<" may break html-parser's parsing procedure. |
env
macOS 10.12.1 Beta
nodejs 6.8.1
vuejs 2.0.3
Steps to reproduce
init a test vue project with default options
edit src/components/Hello.vue
then run dev server
What is actually happening?
got error:
description
Similar issue: #3731 . However, situations are not the same. Replace "<" with ">" won't trigger this error. It's not a bug of pug as the error occurs before pug was called. In fact, this error happens even if pug is not installed.
Thanks for your time to review this issue.
The text was updated successfully, but these errors were encountered: