Nuxt.js: Sass Loader

Created on 17 Sep 2019  路  3Comments  路  Source: nuxt/nuxt.js

Version

v2.9.2

Reproduction link

https://jsfiddle.net/zutw43rx/

Steps to reproduce

Add lang="sass" to any component's style.

What is expected ?

The module should be loaded with the sass-loader.

What is actually happening?

Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
ValidationError: Invalid options object. Sass Loader has been initialised using an options object that does not match the API schema.

  • options has an unknown property 'indentedSyntax'. These properties are valid:
    object { implementation?, sassOptions?, prependData?, sourceMap?, webpackImporter? }
    at validate (/Users/six/Code/scratch/test-nuxt/node_modules/schema-utils/dist/validate.js:49:11)
    at Object.loader (/Users/six/Code/scratch/test-nuxt/node_modules/sass-loader/dist/index.js:36:28)

This bug report is available on Nuxt community (#c9782)
bug-report

Most helpful comment

Its a known issue due to config option change in sass-loader. Dont know the exact version numbers by head, but you should probably use this version:

<the major version you currently have installed which causes the error> - 1

All 3 comments

Its a known issue due to config option change in sass-loader. Dont know the exact version numbers by head, but you should probably use this version:

<the major version you currently have installed which causes the error> - 1

Resolved in #6460

Workaround is to apply the changes manually until the next release, downgrading to sass-loader@^7.0.0 or using nuxt-edge

Was this page helpful?
0 / 5 - 0 ratings

Related issues

o-alexandrov picture o-alexandrov  路  3Comments

maicong picture maicong  路  3Comments

vadimsg picture vadimsg  路  3Comments

vadimsg picture vadimsg  路  3Comments

msudgh picture msudgh  路  3Comments