Closed iraklisg closed 8 years ago
Well, it makes sense, because you're using SASS - this is what the extension language is called. .sass
and .scss
simply differentiate between old and new notation, but the language itself is still SASS. That is what I'm using in native Webpack config with vue-loader
and it works just fine.
Not an issue IMHO.
It seems that this is an issue of vue-for-idea plugin and not of the laravel-elixir-vue-2 plugin as I faulty stated. In addition, there is allready a pull request #12 that maybe solves this problem
I have the same situation. When I use <style lang="sass" ...> instead of <style lang="scss" ....> in my Vue component style tag, the module is successfully compiled, but I still have allot of syntax errors in my Vue component style tag that are marked by red lines. It works fine but looks not very comfortable.
Vue.js Plugin installation in PhpStorm did not solve my problem.
@CodeLookBook if you want to use saas instad of scss you have to use the sass syntax (indented syntax, no curly braces). Please have a look here as well
The new main syntax (as of Sass 3) is known as “SCSS” (for “Sassy CSS”), and is a superset of CSS3's syntax. This means that every valid CSS3 stylesheet is valid SCSS as well. SCSS files use the extension .scss. The second, older syntax is known as the indented syntax (or just “Sass”)
I am using Laravel 5.3.19 node -v : 7.0.0 In my package.json
In my gulpfile.js
In app.js entry point
My vue component is the following
Finally when I run gulp, I get the following error
and in my devtools console:
Uncaught Error: Cannot find module "!!vue-style-loader!css-loader?sourceMap!vue-loader/lib/style-rewriter?id=data-v-64df5ad8!scss!vue-loader/lib/selector?type=styles&index=0!./Example.vue"
Trying to do
npm install vue-style-loader css-loader --save-dev
and I still get exactly the same errorNOTE:
If I use
<style lang="sass" ...>
instead of<style lang="scss" ....>
in my Vue component style tag, I get no errors and the module is successfully compiled