DEV Community

Discussion on: How to configure Webpack 4 or 5 from scratch for a basic website

Collapse
 
robinnnnnn profile image
Robin

Hey Anton,

I am having one issue when I run build I am getting this error :

ERROR in ./src/sass/styles.scss (./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/src!./node_modules/sass-loader/dist/cjs.js??ref--5-3!./src/sass/styles.scss)
    Module build failed (from ./node_modules/sass-loader/dist/cjs.js):
    Error: Dart Sass version 1.25.1-test.1 is incompatible with ^1.3.0.
        at getSassImplementation (/Users/robinsmac/Desktop/OdinCode/Odin_ToDoList/node_modules/sass-loader/dist/getSassImplementation.js:40:13)
        at Object.loader (/Users/robinsmac/Desktop/OdinCode/Odin_ToDoList/node_modules/sass-loader/dist/index.js:40:61)

Enter fullscreen mode Exit fullscreen mode

Any ideas why this is happening?

Collapse
 
antonmelnyk profile image
Anton Melnyk • Edited

Hey Robin!

Well, it basically what it says, sass dependency probably was outdated for sass loader, since the article is 2 years old!

But no worries, I updated all dependencies in the repository (including Webpack, it works now for the latest Webpack 5!), and fixed some typos and wording in the article. You can try to check out the repo and run the code again if you still need it :)