Troubleshooting
Issues with solutions that come up frequently.
Setup
Syntax Error: TypeError: this.getOptions is not a function
If you are experiencing this issue you probably need to change sass-loader
version to 10
.
Possible solution
Downgrade sass-loader
to 10
:
Syntax Error: Error: PostCSS received undefined instead of CSS string
If you are experiencing this issue you probably need to change node-sass
version to 6
.
Possible solution
Downgrade node-sass
to 6
:
Syntax Error: TypeError: Cannot read property 'parseComponent' of undefined
If you are experiencing this issue you probably need update @vue/compiler-sfc
or vue-loader
version.
Possible solution
Update @vue/compiler-sfc
and vue-loader
:
$ npm install @vue/compiler-sfc@latest vue-loader@next
$ yarn add @vue/compiler-sfc@latest vue-loader@next
SASS/SCSS error in Nuxt.js
If you are experiencing SASS/SCSS errors in Nuxt.js 2.x environment the solutions is probably to include certain packages.
Possible solutions
$ npm install --save-dev node-sass sass-loader@10 fibers
$ yarn add --dev node-sass sass-loader@10 fibers
General
Uncaught ReferenceError: data is not defined
If you are receiving the following error, it means that the domains are not configured correctly.
