請(qǐng)問(wèn)一下我已經(jīng)安裝了stylus和stylus-loader,但是編譯app.vue中的style標(biāo)簽中的內(nèi)容還是報(bào)下面的錯(cuò)誤信息是怎么回事?
ERROR in ./src/app.vue?vue&type=style&index=0&id=4f2b4bd2&lang=stylus&scoped=true (./node_modules/vue-loader/lib??vue-loader-options!./src/app.vue?vue&type=style&index=0&id=4f2b4bd2&lang=stylus&scoped=true) 13:0
Module parse failed: Unexpected character '#' (13: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=4f2b4bd2&lang=stylus&scoped=true 1:0-149 1:165-168 1:170-316 1:170-316
?@ ./src/app.vue
?@ ./src/index.js
2019-10-05
我也有這個(gè)問(wèn)題,后來(lái)我照vue-loader官網(wǎng)https://vue-loader.vuejs.org/zh/guide/pre-processors.html#stylus做就可以了,原來(lái)我是沒(méi)有安裝使用vue-style-loader
2019-05-04
nssbm?
2019-01-26
我也報(bào)同樣的錯(cuò),按著官方的寫沒(méi)用啊
2018-08-18
<style scoped>好像就可以了
2018-08-17
1L 里面就說(shuō)了在文檔里面,2L 直接貼了需要修改的地方。
2018-07-17
test: /\.styl(us)?$/
2018-07-06
我也遇到了,請(qǐng)問(wèn)朋友最后怎么解決的啊,求幫助。。。
2018-06-13
你好,這個(gè)問(wèn)題要看vue-loader的官方文檔
https://vue-loader.vuejs.org/zh/guide/pre-processors.html#stylus