gowravshekar / font-awesome-webpack

font-awesome package for webpack
MIT License
192 stars 49 forks source link

Error: Cannot find module 'less' #34

Closed simonh1000 closed 7 years ago

simonh1000 commented 7 years ago

If I understand the instructions correctly, then all I needed to do was to add to index.js, like:

'use strict';

require('./index.html');
require("./styles.scss");
require("font-awesome-webpack");

But I'm getting the following error:

ERROR in ./~/css-loader!./~/less-loader!./~/font-awesome-webpack/font-awesome-styles.loader.js!./font-awesome.config.js
Module build failed: Error: Cannot find module 'less'

I'm not using less and didn't plan to install it. Can you update the instructions for the default simplest possible install?

gowravshekar commented 7 years ago

If you are planning to use sass, use this package.

simonh1000 commented 7 years ago

Thanks