Recently started Vue framework, ravaged by a variety of error, which is a sass grammar, add <style> tag <style lang="scss">
, an error was found in the Internet to find some solutions was chaotic, here is my pro-test practical methods, to give you a share!
In the Chrome browser error:
Sass-loader is unable to resolve this kind of thing.
So the first step needs to be introduced in the project:
1. npm install sass-loader -D
2..npm install node-sass -D
Soon to introduce the first success:
but in the second they went wrong:
but I use cnpm install node-sass -D
it a success! ! ! (Now more slag, do not know why)
so that the project can be executed successfully: