erikras / react-redux-universal-hot-example

A starter boilerplate for a universal webapp using express, react, redux, webpack, and react-transform
MIT License
12k stars 2.5k forks source link

Font-awesome problem #1413

Closed hrasekh closed 6 years ago

hrasekh commented 6 years ago

During building my app I get the following error:

ERROR in ./~/font-awesome-webpack/index.loader.js!./src/theme/font-awesome.config.prod.js Module not found: Error: Can't resolve '[object Object],[object Object],[object Object],[object Object]' in '~/app/src/theme' resolve '[object Object],[object Object],[object Object],[object Object]' in '~/app/src/theme' Parsed request is a module using description file: ~/app/package.json (relative path: ./src/theme) after using description file: ~/app/package.json (relative path: ./src/theme) resolve as module ~/app/src/theme/node_modules doesn't exist or is not a directory ~/app/src/node_modules doesn't exist or is not a directory ~/workspace/salamcinama/node_modules doesn't exist or is not a directory ~/workspace/node_modules doesn't exist or is not a directory ~/node_modules doesn't exist or is not a directory /home/node_modules doesn't exist or is not a directory /node_modules doesn't exist or is not a directory

bertho-zero commented 6 years ago

Personally I use the scss from font-awesome instead of font-awesome-webpack: https://github.com/bertho-zero/react-redux-universal-hot-example/blob/a5d8bda2492af8450f10c2f3bf16f49e513be72b/src/theme/app.scss#L1

hrasekh commented 6 years ago

using this commit helped me to solve my problem:

Webpack and ExtractText plugin