webpack: Module not found: Error: Cannot resolve module 'sass-loader'
i just add <style lang='sass'>
into .vue file and then
ERROR in ./src/App.vue Module not found: Error: Cannot resolve module ‘sass-loader’
i did’t change anything else
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Reactions: 10
- Comments: 24 (1 by maintainers)
npm install sass-loader --save-dev
You also need:
I had the same issue with WebPack straight off the bat, here’s the full solution:
Then you MUST stop and rerun your npm task 😃
It should be:
try this
npm i sass-loader node-sass -D
You are writing SCSS, not SASS.
I get
sass-loader@6.0.6 requires a peer of webpack@^2.0.0 || >= 3.0.0-rc.0 || ^3.0.0 but none was installed
when I runnpm install sass-loader --save-dev
.After install two packages , need to restart dev server
Al parecer el la versión npm install --save-dev sass-loader@7.1.0
Absolutely right
when i install sass-loader, i get error
npm WARN prefer global node-gyp@3.6.2 should be installed with -g
@renepastor gracias por esa sugerencia! yo tuve que instalar
sass-loader@8.0.2
. parece que la version 11 no es compatible o algo por el estilo.If you work with yarn command should be
yarn add sass-loader node-sass --dev
Hi, i am try with: $ npm install sass-loader node-sass style-loader --save-dev