Great tutorial, thanks Anton! It would really help if you could let us see your full webpack.config.js though. I'm getting a weird error TypeError: this.getOptions is not a function from sass-loader. I'm pretty sure it's because something's in the wrong place in my config.
My problem was due to package versions. On npm install I was getting these warnings:
npm WARN postcss-loader@5.0.0 requires a peer of webpack@^5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN sass-loader@11.0.0 requires a peer of webpack@^5.0.0 but none is installed. You must install peer dependencies yourself.
Installing webpack 5.0.0 made them go away and got the build running correctly.
npm install --save-dev "webpack@^5.0.0"
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Great tutorial, thanks Anton! It would really help if you could let us see your full
webpack.config.js
though. I'm getting a weird errorTypeError: this.getOptions is not a function
fromsass-loader
.I'm pretty sure it's because something's in the wrong place in my config.My problem was due to package versions. On
npm install
I was getting these warnings:Installing webpack 5.0.0 made them go away and got the build running correctly.