question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Bug Report] Vuetify not working with .scss file

See original GitHub issue

Versions and Environment

Vuetify: 2.0.0-beta.7 Vue: 2.6.10 Browsers: Chrome 75.0.3770.100 OS: Mac OS 10.14.5

Steps to reproduce

npm run serve

Expected Behavior

Application working without errors

Actual Behavior

Running development mode shows a message about vue.config.js Expected ";" on @import "~@/scss/main.scss"

If I add the missing “;” the error persists but change the message to: Semicolons aren't allowed in the indented syntax.

Reproduction Link

https://github.com/rafaelmaiach/vuetify-issue

Other comments

I followed the SASS Variables setup on Vuetify version 2 website. It said about a chainWebpack config if I was using .sass files, but I’m using .scss files, that’s why this step is not configurable.

This problem also makes I’m unable to use custom variables on the application.

The repository was created with Vue CLI 3 and vuetify added using the steps informed on Release 2.0.0-beta.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:4
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
FossPrimecommented, Sep 13, 2019

I just came here to the party for the bugs. @Giildo

Remember this only works with @vue/cli-service 3.11 or later vue.config.js:

module.exports = {
  css: {
    loaderOptions: {
      sass: {
        data: `@import "@/styles/_variables.sass"` // empty file
      },
      scss: {
        // My very particular set of styles I have acquired over a long career
        data: `@import "@/styles/_variables.scss"; @import "@/styles/_mixins.scss";`
      }
    }
  }
}
3reactions
daxdax89commented, Sep 30, 2019

I still have this issue

Read more comments on GitHub >

github_iconTop Results From Across the Web

Contributing — Vuetify
#Contributing. Vuetify is made possible by an amazing community that submits issues, creates pull requests, and provides invaluable feedback.
Read more >
Frequently asked questions — Vuetify.js
Stuck on a problem? Check out the most frequently asked questions by the Vuetify community.
Read more >
vue.js - Vuetify Could not find defaults instance - Stack Overflow
1 Answer 1 · I have the same issue, it helps by not having this error, but the icons don't work as it...
Read more >
Vue - Mixing SASS with SCSS, with Vuetify as an Example
I got this error when trying to load a scss file through ... This issue is not simply about getting SASS/SCSS to work...
Read more >
Getting started with Vuetify: Is Vuetify right for you?
While Vue has a strong focus on component logic and the application as a whole, a developer will need to work with other...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found