question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

sass-loader 8 incompatiblity

See original GitHub issue

Do you want to request a feature or report a bug? Bug

What is the current behaviour? Installing sass-loader results in the latest version (8.0.0) from NPM. then running npm run start which runs preact cli tools then fails with the following error

βœ– ERROR ./node_modules/preact-cli/lib/lib/webpack/proxy-loader.js??ref--2-0!./src/components/formInput/style.scss
Module build failed: 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 'includePaths'. These properties are valid:
   object { implementation?, sassOptions?, prependData?, sourceMap?, webpackImporter? }    at validate (/mnt./src/routes/category/index.js
 @ ./src/routes/category/index.js
 @ ./src/components/app.js
 @ ./src/index.js
 @ ./node_modules/preact-cli/lib/lib/entry.js
 @ multi ./node_modules/preact-cli/lib/lib/entry webpack-dev-server/client webpack/hot/dev-server

Note this hit vue at the same time https://github.com/vuejs/vue-cli/issues/4513

If the current behaviour is a bug, please provide the steps to reproduce. Create a new preact project, the demo with a header is fine. npm install sass-loader@8.0.0 node-sass Rename the existing css file to a .scss file in one of the components. npm run start

What is the expected behaviour? Runs as usual, it works with sass-loader@7.3.1 but not 8.0.0

If this is a feature request, what is motivation or use case for changing the behaviour? sass-loader seems to be officially listed in the documentation, maintaining support would be pleasant.

Please mention other relevant information.

Please paste the results of preact info here.

> preact info

         β–„β–„ 
     β–„β–„β–“β–“β–“β–“β–“β–“β–„β–„
  β–„β–ˆβ–€β–€β–ˆβ–“β–“β–“β–“β–“β–“β–“β–€β–€β–ˆβ–„β–„
β–β–“β–Œβ–β–“β–“β–“β–’β–„ β–€β–„β–„β–“β–“β–“β–Œβ–β–“β–Œ
▐▓▓▄▀▓▀ β–„β–“β–“β–„β–„β–€β–“β–“ β–“β–“β–Œ 
β–β–“β–“β–“β–Œ β–’β–“β–Œ  ▐▓▓  β–“β–“β–“β–Œ preact-cli 2.2.1
▐▓▓ β–’β–“β–„β–„β–€β–“β–“β–€ β–„β–“β–“ β–“β–“β–Œ
β–β–“β–Œβ–β–“β–“β–“β–€β–€β–„β–„β–€β–€β–“β–“β–“β–Œβ–β–“β–Œ
  β–€β–ˆβ–„β–„β–’β–“β–“β–“β–“β–“β–“β–’β–„β–„β–’β–€
      β–€β–“β–“β–“β–“β–“β–“β–€β–€
         β–€β–€
For help with a specific command, enter:
  preact help [command]

  create [template] [dest]  Create a new application.
  build [src] [dest]        Create a production build in build/
  watch [src]               Start a development live-reload server.
  serve [dir]               Start an HTTP2 static fileserver.
  list                      List all official templates

Options:
  -h, --help  Show help                                                [boolean]

Unknown argument: info

Is this an outdated command line option or issue template?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

8reactions
jliebrandcommented, Nov 19, 2019

Friendly ping - is anyone looking at this?

6reactions
lsahilcommented, Sep 13, 2019

+1 Downgrading to sass-loader@7.3.1 works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Compatibility with sass-loader 8.0.0 Β· Issue #2206 - GitHub
A heads up that Laravel mix doesn't seem to be compatible with sass-loader 8.0.0 (just released) which has some breaking changes.
Read more >
Node Sass version 8.0.0 is incompatible with ^4.0.0?
Try this: In your packege.json file, delete "node-sass": "^4.12.0" and replace it with "sass": "". This did it for me.
Read more >
sass-loader - npm
0.0 if is possible (i.e. you need install the fibers package). Warning. Fibers is not compatible with Node.js v16.0.0 or later. Unfortunately,Β ...
Read more >
sass-loader versions and peer dependencies
The table below has a list of all versions of sass-loader with compatible ... 8.0.0. webpack @ ^4.36.0; node-sass @ ^4.0.0; sass @...
Read more >
error: node sass version 7.0.1 is incompatible with ^4.0.0.
Asked Dec 8, 2021 β€’ 151 votes 12 answers. QUESTION ... Edit: this error comes from sass-loader. ... It's your version of sass-loader...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found