Skip to content

Cant use postcss lang tag anymore #792

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
3 tasks done
r0skar opened this issue May 16, 2018 · 2 comments
Closed
3 tasks done

Cant use postcss lang tag anymore #792

r0skar opened this issue May 16, 2018 · 2 comments

Comments

@r0skar
Copy link

r0skar commented May 16, 2018

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ

Info

  • Platform: Linux

Problem

Using following code:

<style lang="postcss" scoped>
.test {
  color: #000000;
}
</style>

I get this error:

ERROR in ./node_modules/vuepress/lib/default-theme/Layout.vue?vue&type=style&index=2&id=25045c01&lang=postcss&scoped=true (./node_modules/vue-loader/lib??vue-loader-options!./node_modules/vuepress/lib/default-theme/Layout.vue?vue&type=style&index=2&id=25045c01&lang=postcss&scoped=true)
Module parse failed: Unexpected token (172:0)
You may need an appropriate loader to handle this file type.
|
|
| .test {
|   color: #000000;
| }
 @ ./node_modules/vuepress/lib/default-theme/Layout.vue?vue&type=style&index=2&id=25045c01&lang=postcss&scoped=true 1:0-146 1:162-165 1:167-310 1:167-310
 @ ./node_modules/vuepress/lib/default-theme/Layout.vue
 @ ./node_modules/vuepress/lib/app/.temp/routes.js
 @ ./node_modules/vuepress/lib/app/app.js
 @ ./node_modules/vuepress/lib/app/clientEntry.js
 @ multi ./node_modules/vuepress/lib/app/clientEntry.js

The above code works just fine when omitting the lang tag. However, that breaks syntax highlighting.

Also see vuejs/vue-cli#1285 and #506

@r0skar r0skar closed this as completed May 16, 2018
@innocenzi
Copy link

I saw numerous issues for this but I can't seem to find any solution to fix it. This comment implies that it can be fixed, having vue-loader configured doesn't solve the issue?

@octref
Copy link
Member

octref commented Jun 18, 2019

@r0skar Did you have it fixed in vuepress?

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

No branches or pull requests

3 participants