Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SassError: media query expression must begin with '('

I had this problem even I didn't manage to sleep, guys

my codes are like these

<style lang="scss" scoped>
    @import '~/assets/scss/main.scss'
    .home_nav{
        nav {

        }
    }
</style>

the error is

enter image description here

please, someone, to help me

like image 625
Ntwari Clarance Liberiste Avatar asked May 08 '20 13:05

Ntwari Clarance Liberiste


1 Answers

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.js the solution does not apply only in Vue but anywhere you use node-sass and sass-loader ( now called sass)

then it had to be like this

<style lang="scss" scoped>
    @import '~/assets/scss/main.scss';
    .home_nav{
        nav {

        }
    }
</style>
like image 157
Ntwari Clarance Liberiste Avatar answered Nov 07 '22 10:11

Ntwari Clarance Liberiste