Skip to content

Templates written in pug result in one root element warning #466

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

Closed
a0js opened this issue Nov 14, 2016 · 10 comments
Closed

Templates written in pug result in one root element warning #466

a0js opened this issue Nov 14, 2016 · 10 comments
Labels

Comments

@a0js
Copy link

a0js commented Nov 14, 2016

After upgrading to 9.9.1, I started getting errors one pug templates. The templates had only one root element but failed compiling with the error that component templates should have only one root element.

@k55k32
Copy link

k55k32 commented Nov 15, 2016

yep I got the same error.
And I take back the version to 9.9.0.
Now it's worked

@cxr29
Copy link

cxr29 commented Nov 15, 2016

loader.js@line 152

raw is not loader

@thorning
Copy link

this is related to #464 and 09aa250 . Reverting the template part of the commit solves the issue for me, but maybe breaks other template languages?

cxr29 added a commit to cxr29/vue-loader that referenced this issue Nov 15, 2016
@chogarcia
Copy link

chogarcia commented Nov 15, 2016

this is also happening to me

@riovir
Copy link

riovir commented Nov 15, 2016

Mea culpa on breaking the template. It was not strictly necessary to add the -loader in that case. Was a misguided attempt at consistency on my part in 09aa250 in an attempt to fix #464.

@yyx990803
Copy link
Member

should be fixed in 9.9.2

@solidevolution
Copy link

When it's available as release via npm?

@yyx990803
Copy link
Member

@solidevolution it's already out.

@solidevolution
Copy link

I saw it on the master but there is no release/tag?!

@codysherman
Copy link

Hey just reporting in that I'm still experiencing this is 9.9.5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

10 participants