New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Doesn't work with Webpack 2 #24
Comments
I wonder how you link issues (sorry first pull request) #25 |
Yup, same problem here. |
I have the same problem as well. |
+1 |
I created a temporary fork until this issue gets resolved: https://www.npmjs.com/package/font-awesome-webpack2 |
@tamasd bravo! |
Hey @tamasd thanks dude 🍻 ! |
@tamasd Is there a specific reason to use the less version? I came across an annoying issue when using npm shrinkwrap, which was caused by less and less-loader. |
@unsafecode in my fork I only merged a very small PR that makes it work with the newer webpack versions. Your issue is present in the original package as well. |
@tamasd Can't resolve 'font-awesome/less/stacked.less |
Same error for me.. Can't find a solution! Error: Cannot find module 'style-loader!css-loader!less-loader!./font-awesome-styles.loader!./font-awesome.config.js' from ... my dependencies in package.json: "dependencies": { and require('font-awesome-webpack2') in main.js file. |
I'm experiencing the same problem.
to webpack.config.js and added
I do not have less installed. What is the way forward? |
@tamasd have you figured out how to use extract-text-webpack-plugin with your fork and webpack 2? It works with |
@tamasd would you like to merge your fork back in? |
No, afaik there's nothing in important in it anymore. |
I'm closing this issue as it does work with webpack2 now. If anyone has any outstanding issues in this ticket, please open them as new separate issues. |
@wolfadex I am still getting the exact same errors. Do you have a repository that shows this working? I have been working on this following the npm instructions for over an hour now. |
the bug is that they have forgotten to add the original 'font awesome' npm as a dependency |
If your missing stacked.less or other files, npm install font-awesome. As the poster above said, its missing font-awesome as a dependency. Same with anything else, if your missing "less" or "url-loader" or whatever, just install --save-dev it |
npm i --save font-awesome |
Currently getting the following error using Webpack 2:
Uncaught Error: Cannot find module "style!css!less!./font-awesome-styles!./font-awesome.config.js"
Module not found: Error: Can't resolve './font-awesome-styles' in '/Users/unyo/ocean/node_modules/font-awesome-webpack'
resolve './font-awesome-styles' in '/Users/unyo/ocean/node_modules/font-awesome-webpack'
The text was updated successfully, but these errors were encountered: