Static GitHub Issues

[3231] [edge] <style lang="postcss"> cannot be parsed

prev: Require dependencies only for SSR bundle
next: 为什么generate之后放到nginx里js会失效.

Version

2.0.0-25396844.0aea0d5

Reproduction link

https://github.com/OrcaXS/nuxt-test

Steps to reproduce

npm install -g vue-cli
vue init nuxt-community/starter-template nuxt-test
yarn add nuxt@npm:nuxt-edge

Add lang="postcss" to ./pages/index.vue

yarn build

What is expected ?

No error is thrown

What is actually happening?

ERROR in ./pages/index.vue?vue&type=style&index=0&lang=postcss (./node_modules/vue-loader/lib/loaders/stylePostLoader.js!./node_modules/vue-loader/lib??vue-loader-options!./pages/index.vue?vue&type=style&index=0&lang=postcss)
Module parse failed: Unexpected token (2:0)
You may need an appropriate loader to handle this file type.
|
| .container {
|   min-height: 100vh;
|   display: flex;
 @ ./pages/index.vue?vue&type=style&index=0&lang=postcss 1:0-186 1:202-205 1:207-390 1:207-390
 @ ./pages/index.vue
 @ ./.nuxt/router.js
 @ ./.nuxt/index.js
 @ ./.nuxt/client.js
<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This bug report is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c6917">#c6917</a>)</em></sub></div>