want i use stylus in App.vue
report error
./src/renderer/App.vue?vue&type=style&index=0&lang=stylus& (./node_modules/vue-loader/lib??vue-loader-options!./src/rende
rer/App.vue?vue&type=style&index=0&lang=stylus&) 30:3
i installed stylus and stylus-loader
Hello,
Did you made any change to your webpack config?
not change webpack config.

i meet the same problems although i install the stylus and stylus-loader . i try hard to change my webpack config,but it doesn't work.
I came across this issue and got it resolved by modifying my Webpack configs.
Firstly, get both stylus-loader and stylus module installed.
Then, add the following rules in both webpack.web.config.js and webpack.renderer.config.js.
module: {
rules: [
{
test: /\.styl(us)?$/,
use: ['vue-style-loader', 'css-loader', 'stylus-loader']
},
...
{
test: /\.vue$/,
use: {
loader: 'vue-loader',
options: {
loaders: {
stylus: 'vue-style-loader!css-loader!stylus-loader',
styl: 'vue-style-loader!css-loader!stylus-loader'
}
}
}
},
...
]
}
Hope it helps.
Most helpful comment
I came across this issue and got it resolved by modifying my Webpack configs.
1. Get the loaders
Firstly, get both
stylus-loaderandstylusmodule installed.2. Modify Webpack configs
Then, add the following rules in both
webpack.web.config.jsandwebpack.renderer.config.js.Hope it helps.