-
Notifications
You must be signed in to change notification settings - Fork 18
Cannot compile *.vue modules with SCSS #15
Comments
Well, it makes sense, because you're using SASS - this is what the extension language is called. 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
|
Uh oh!
There was an error while loading. Please reload this page.
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 compiledThe text was updated successfully, but these errors were encountered: