'SassError: media query expression must begin with '('
Solution 1:[1]
It's a missing semicolon(;) ?
i found the problem was typo error i was missing ; on @import '~/assets/scss/main.scss'
Note: even if this error occurred in
vue.jsthe solution does not apply only inVuebut anywhere you usenode-sassandsass-loader( now calledsass)
then it had to be like this
<style lang="scss" scoped>
@import '~/assets/scss/main.scss';
.home_nav{
nav {
}
}
</style>
Solution 2:[2]
I had same problem. You are missing semicolon ; in the end of your import.
**@import "./common/colors.scss";**
* {
margin:0;
padding:0;
box-sizing: border-box;
font-family: "Open Sans";
}
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | |
| Solution 2 | Jamal Ashraf |

