app.vue樣式報錯,是怎么回事呢?
<style scoped>
#app {
? ? position absolute
? ? left 0
? ? right 0
? ? top 0
? ? bottom 0
}
#cover {
? ? position absolute
? ? left 0
? ? right 0
? ? top 0
? ? bottom 0
? ? background-color #555
? ? opacity 0.5
? ? z-index: -1
}
</style>
ERROR in ./src/app.vue?vue&type=style&index=0&id=5ef48958&lang=stylus&scoped=true& (./node_modules/vue-loader/lib??vue-loader-options!./src/app.vue?vue&type=style&index=0&id=5ef48958&lang=stylus&scoped=true&) 16:0
Module parse failed: Unexpected character '#' (16:0)
You may need an appropriate loader to handle this file type.
|?
|?
> #app {
|? ? ?position absolute
|? ? ?left 0
?@ ./src/app.vue?vue&type=style&index=0&id=5ef48958&lang=stylus&scoped=true& 1:0-150 1:166-169 1:171-318 1:171-318
?@ ./src/app.vue
?@ ./src/index.js
2019-12-21
我也遇到同樣的問題,太感謝各位了。
2018-11-21
你是怎么弄的....我也遇到這個問題了
2018-09-30
2018-09-28
VueLoaderPlugin
? 看下是不是少了這個配置,或者你把webpack版本退到3也可以
2018-09-26
在webpack.config.js里面缺少配置