Open weituotian opened 7 years ago
I had the same problem and resolved it by installing the following packages
less url-loader file-loader
@Nogbit thanks for your advice! i will try it!
Same problem. Shouldn't the less module be a dependancy as it doesn't seem to work without it?
@JamesJefferyUK
I don't think so as less
isn't a direct dependency of font-awesome-webpack
, but a peer dependency of less-loader
(see package.json), which is itself a dependency of font-awesome-webpack
(see package.json).
So it's up to the less-loader
package to make it a normal dependency if needed, but they decided not to (see https://github.com/webpack-contrib/less-loader/pull/62#issuecomment-159414140).
More on peer dependencies in this good article: https://lexi-lambda.github.io/blog/2016/08/24/understanding-the-npm-dependency-model/
I had the same problem and resolved it by installing the following packages
less url-loader file-loader
I know the topic is kinda old but I had a recent problem with less-loader and webpack and this is exactly what I needed ! Thank you