style lang="stylus" 之后,npm run dev總是報錯,麻煩會的解答一下
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&) 15:0
Module parse failed: Unexpected character '#' (15: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
?@ multi (webpack)-dev-server/client?http://0.0.0.0:8000 (webpack)/hot/dev-server.js ./src/index.js
Child html-webpack-plugin for "index.html":
2019-08-15
樓主已經給出答案了,去掉$即可
2019-05-08
后邊不要加$,然后重新npm run dev
2019-05-04
同求。。。
2019-04-17
解決了嘛?我也遇到同樣的問題
2019-03-13
test:/\.styl(us)?$/,
use:[
'style-loader',
'css-loader',
2019-03-06
剛問過,就看到答案了,答案來自“小程序魔王”
視頻上的是?/\.styl/ ,沒有加$結束符,以前我還以為老師忘寫了呢,現在覺得是因為加了結束符只能匹配以.styl后綴結尾的文件,不加結束符可以匹配含有.styl的文件,即既可以匹配.styl也可以匹配.stylus