-
I'm about to lose my mind. I've send the last 4 hours to get my variables.scss file with vuetify-loader / sass-loader to work. As soon as set the following rules, webpack / laravel.mix goes nuts and throws sass-loader errors (see below) in each component. So something must be wrong with it. I've tried all kind of things, but I just can't get it to work. I'm not really familiar with webpack, so I assume, that theres just a simple mistake on my side. The error points to the semicolon at the end of the code that webpack generates. I've checked the semicolon in the rules 100 times. I'm so despaired, I've already even tried all combinations of semicolons, although I knew it doesnt make sense XD Also the place, were the error occurence is shown in, is weird, but then again,... I have no idea what iam actually looking at, when I look at the "error in" description. Is this a stack trace or what is webpack trying to tell me? :) Its also my first laravel and vue project. Please tell me if you see something that should be done differently (apart from my obviously broken webpack rules :D ). I've used previously a small package that configured webpack with the vuetify- / sass-loader. Since it (for obvious reasons) stopped working, after updating laravel.mix and vuetify-loader, I thought I'll just follow the documentation and will be fine... that was more than 4 hours ago 👍. I'm not fine (anymore)... I'm about to lose my mind... PLEASE HELP ErrorsI get these erros, across all components:
It points to the semicolon at the end of this (during webpack-build generated?) line of code: webpack.config.jsThese are the rules, causing it, which are basiclly copied from the vuetify documentation (and removed the lines that are for the older sass-loader version)
package.jsonI got these packetes installed (everything relevant should up to date):
webpack.mix.jsThe whole pack-chain looks like this:
variables.scssMy variables.scss contains just those few declarations:
PLEASE HELP ME, BEFORE I GO INSANE |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
|
Beta Was this translation helpful? Give feedback.
-
Thank you! I figured that that might be the problem. Do you know if i can retroactivly switch to vue-cli, without too much of a hastle? or would it be unrecommended to do so, at that stage? |
Beta Was this translation helpful? Give feedback.
mix.webpackConfig
adds to the existing config, so you end up with two sets of rules for.scss
files. You need to figure out how to modify the existing rules with mix, or use a better tool like vue-cli.