-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug Report] Vuetify 2.0 Errors "expected {" and "expected new line" on vuetify sass files #8320
Comments
Please read the FAQ |
@johnleider it's pretty uncool that this was closed with nothing more than a link to the FAQ page. I'm having the exact same issue but I'm upgrading an existing project and haven't used vue-cli. I have gone over the FAQ and I still have this problem. |
@KaelWD My project was created with vue CLI 2 as I mentioned above |
@KaelWD Thank you! It works now, deleted the configuration for sass-loader :) although the fact is not well written in the documentation so maybe it should be added there.. I have another question regarding the sass/main.scss file (vuetify documentation), I've changed the setting to point vuetify-loader instead of creating the sass/main.scss file:
Do you think it's a good practice or should I hold that extra file? Thanks |
@ShlomitSibony, I have the same problem. And after one whole night of trying and I found that it's not the vuetify problem.
comment the sass related line, which means the default way of processing the sass files which generate the problem this issue described, and then add the FAQ sass-loader config to the |
Try to remove the " indentedSyntax: true " from the webpack.config.js sass rules The official document requires you to add this code inside the rules of webpack.config.js: instead, you can try: |
So I figured out how it will work and at the same time how dumb I am.
But that's not it. For me, I remove the following lines:
|
Guess you are also Adding
|
Environment
Vuetify Version: 2.0.3
Vue Version: 2.6.10
Browsers: Chrome 75.0.3770.142
OS: Windows 10
Steps to reproduce
npm i vuetify
npm i vue
add plugins/vuetify.js as in reproduction link
add sass/main.scss as in reproduction link
add css/sass sections to vue.config.js as in reproduction link
add vuetify to main.ts (new Vue) as in reproduction link
Expected Behavior
SASS files build success
Actual Behavior
SASS files build failed
errors on many vuetify sass files, for example:
Reproduction Link
https://codesandbox.io/s/vue-template-5xs2r
Other comments
The Project was created with Vue CLI 2 and I'm using @vue/cli-service 3.0.3,
according to vuetify documentation it is possible to use a project which was created with vue cli 2: https://vuetifyjs.com/en/getting-started/quick-start#existing-applications
The text was updated successfully, but these errors were encountered: