Comments (5)
I had the same problem and resolved it by installing the following packages
less
url-loader
file-loader
from font-awesome-webpack.
@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 webpack-contrib/less-loader#62 (comment)).
More on peer dependencies in this good article: https://lexi-lambda.github.io/blog/2016/08/24/understanding-the-npm-dependency-model/
from font-awesome-webpack.
@Nogbit thanks for your advice! i will try it!
from font-awesome-webpack.
Same problem. Shouldn't the less module be a dependancy as it doesn't seem to work without it?
from font-awesome-webpack.
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
from font-awesome-webpack.
Related Issues (20)
- Error: Can't resolve './font-awesome-styles' when upgrading to [email protected] HOT 6
- Can't resolve './font-awesome-styles' HOT 11
- ExtractStyles failure; Unrecognised input; @import "~font-awesome/scss/_variables.scss"; HOT 1
- Doesn't work with Webpack 2 HOT 21
- Font file not found HOT 1
- Unit Testing: Crashing in Mocha? HOT 1
- Support
- The new version is not published HOT 11
- Module not found: Error: Can't resolve './font-awesome-styles' HOT 4
- Webpack2 and ExtractText plugin HOT 3
- Error: Cannot find module 'less' HOT 2
- usage error
- svg loader issue - Invalid tag HOT 1
- does it support webpack2? HOT 2
- Unexpected characters HOT 2
- Module not found: Error: Can't resolve HOT 1
- Webpack 4 breaks font-awesome-webpack... HOT 16
- TypeError: Cannot read property 'lessLoader' of undefined HOT 3
- can you please update the package.json dependencies specifically css-loader HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from font-awesome-webpack.