-
Notifications
You must be signed in to change notification settings - Fork 231
style lang="scss" incorrectly reporting errors #52
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
Comments
same to me, any solution? |
@endoplasmic after installed |
@endoplasmic it depends on which package you use for Sass/SCSS in Sublime.
Personally, I recommend to uninstall whatever syntax definitions you use for Sass and manually download Now if you look into vue.tmLanguage you'll see that for The solution: there is no way to keep everyone happy on this, at least not until Sublime will get the official package for Sass/SCSS, which would sort out which way this should be. So temporarily do this:
Note that if Vue Syntax Highlight package got an update, you would have to repeat this. Otherwise, you will still be using your old override file. |
@mrliptontea MAAAAAN that was tricky.
Kind of a ghetto fix, but a fix none the less and I appreciate you taking the time to sort me out :) |
I just ran into the same issue recently. And yes, it is kind of a ghetto fix 😉 Ah, you didn't have to install ST2: |
Ahh, nice. Yah what I ended up doing is removing the Vue Syntax Highlight package, creating the directories that you mentioned above, and changed the line of code you also mentioned above. Now I've got it all working nicely 👯 |
@mrliptontea wow! Thank you so much! This method works really well 🎉 |
Another thanks for @mrliptontea! Related: I wish there were some instructions for how exactly to get SASS working in .vue files (including Sublime package installs, webpack config, etc). Not necessarily specifics, since those would be tough to maintain, but a general overview like:
|
Not a problem. To get started with SCSS and .vue files in Sublime Text, well, install Vue Syntax Highlight package. To use Webpack and compile Sass/SCSS in .vue files use vue-cli tools with webpack or webpack-simple template:
It'll create package.json and webpack config files for you. You might need to modify these config files depending on your project setup. As of now, only |
Simpler version of @mrliptontea's idea that worked for me (I only ever use scss for my vue files):
|
Combine the answer with @Doeke and @mrliptontea I installed
If you installed both 3 and 4, in sublime, you will see two "Vue component" syntax when you click bottom right
Or
If you only apply fix to one file and it doesn't work, try to switch to another "Vue component" syntax, also you need to restart sublime to make the change |
Because this issue still exists and I keep finding myself searching for how to do it again, here are my exact steps for a new machine, made into as simple a workflow as possible:
|
I just want to add to @Doeke's answer that you can edit the |
You can see that curly braces and semi colons are showing as errors when they are actually valid.
The text was updated successfully, but these errors were encountered: