I have component - Header.vue
Header:
<template>
<div>
<div class="header">
</div>
</div>
</template>
<script>
export default {
name: "Header"
}
</script>
<style lang="scss">
@import "src/assets/styles/header";
</style>
As you can see, I am trying to import scss file called header, but it just doesn't work. In internet I found, that I had to install sass, node-sass and sass-loader but it didn't work for me. I still get error. What is the problem? With filename? Or should I import this file somewhere else?
P.S: Here is package.json, if it could be important:
{
"name": "asd",
"version": "0.1.0",
"private": true,
"scripts": {
"serve": "vue-cli-service serve",
"build": "vue-cli-service build"
},
"dependencies": {
"core-js": "^3.6.5",
"node-sass": "^6.0.1",
"sass-loader": "^12.1.0",
"vue": "^3.0.0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "~4.5.0",
"@vue/cli-service": "~4.5.0",
"@vue/compiler-sfc": "^3.0.0"
}
}