DEV Community

Discussion on: Laravel tips: set resolve alias in Laravel mix

Collapse
 
plweil profile image
Peter Weil

I get an npm compile error using either solution:

"Invalid CSS after "...load the styles": expected 1 selector or at-rule, was "var content = requi"

The referenced sass file uses several @import statements.

In addition, I am using mix v2 and PHPStorm 2019.3. I don't understand the solution offered above for PHPStorm, since Mix already includes a webpack.config.js file at root. How is one supposed to integrate the suggested code with what is already in that config file? I've seen a number of proposed solutions to this question, but I haven't gotten anything to work. Any suggestions would be appreciated.