frosch said over 4 years ago on Using Bootstrap Themes :
Hey i have a theme i wanted to include and it worked well, but when i push the app to heroku i get an error because of fontawesome does anyone have a clue how to solve it ? ``` remote: Compiling... remote: Compilation failed: remote: ModuleNotFoundError: Module not found: Error: Can't resolve '@fortawesome/fontawesome-free/js/all' in '/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript/packs' remote: at factory.create (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/lib/Compilation.js:925:10) remote: at factory (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/lib/NormalModuleFactory.js:401:22) remote: at resolver (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/lib/NormalModuleFactory.js:130:21) remote: at asyncLib.parallel (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/lib/NormalModuleFactory.js:224:22) remote: at /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/neo-async/async.js:2830:7 remote: at /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/neo-async/async.js:6877:13 remote: at normalResolver.resolve (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/lib/NormalModuleFactory.js:214:25) remote: at doResolve (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:213:14) remote: at hook.callAsync (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5) remote: at _fn0 (eval at create (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1) remote: at resolver.doResolve (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:44:7) remote: at hook.callAsync (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5) remote: at _fn0 (eval at create (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1) remote: at hook.callAsync (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5) remote: at _fn0 (eval at create (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/tapable/lib/HookCodeFactory.js:33:10), :27:1) remote: at resolver.doResolve (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43) remote: at hook.callAsync (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5) remote: at _fn41 (eval at create (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/tapable/lib/HookCodeFactory.js:33:10), :28:1) remote: at resolver.doResolve (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/node_modules/enhanced-resolve/lib/ModuleKindPlugin.js:30:40) remote: at hook.callAsync (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5) remote: at _fn0 (eval at create (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1) remote: at hook.callAsync (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5) remote: at _fn2 (eval at create (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/tapable/lib/HookCodeFactory.js:33:10), :16:1) remote: at args (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/node_modules/enhanced-resolve/lib/forEachBail.js:30:14) remote: at hook.callAsync (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5) remote: at _fn0 (eval at create (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1) remote: at resolver.doResolve (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:44:7) remote: at hook.callAsync (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5) remote: at _fn0 (eval at create (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/tapable/lib/HookCodeFactory.js:33:10), :15:1) remote: at hook.callAsync (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5) remote: at _fn0 (eval at create (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/tapable/lib/HookCodeFactory.js:33:10), :27:1) remote: at resolver.doResolve (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:67:43) remote: at hook.callAsync (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5) remote: at _fn42 (eval at create (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/tapable/lib/HookCodeFactory.js:33:10), :16:1) remote: at hook.callAsync (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/webpack/node_modules/enhanced-resolve/lib/Resolver.js:285:5) remote: at _fn0 (eval at create (/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/tapable/lib/HookCodeFactory.js:33:10), :27:1) remote: resolve '@fortawesome/fontawesome-free/js/all' in '/tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript/packs' remote: Parsed request is a module remote: using description file: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/package.json (relative path: ./app/javascript/packs) remote: Field 'browser' doesn't contain a valid alias configuration remote: resolve as module remote: looking for modules in /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript remote: using description file: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/package.json (relative path: ./app/javascript) remote: Field 'browser' doesn't contain a valid alias configuration remote: using description file: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/package.json (relative path: ./app/javascript/@fortawesome/fontawesome-free/js/all) remote: no extension remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript/@fortawesome/fontawesome-free/js/all doesn't exist remote: .mjs remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript/@fortawesome/fontawesome-free/js/all.mjs doesn't exist remote: .js remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript/@fortawesome/fontawesome-free/js/all.js doesn't exist remote: .sass remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript/@fortawesome/fontawesome-free/js/all.sass doesn't exist remote: .scss remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript/@fortawesome/fontawesome-free/js/all.scss doesn't exist remote: .css remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript/@fortawesome/fontawesome-free/js/all.css doesn't exist remote: .module.sass remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript/@fortawesome/fontawesome-free/js/all.module.sass doesn't exist remote: .module.scss remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript/@fortawesome/fontawesome-free/js/all.module.scss doesn't exist remote: .module.css remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript/@fortawesome/fontawesome-free/js/all.module.css doesn't exist remote: .png remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript/@fortawesome/fontawesome-free/js/all.png doesn't exist remote: .svg remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript/@fortawesome/fontawesome-free/js/all.svg doesn't exist remote: .gif remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript/@fortawesome/fontawesome-free/js/all.gif doesn't exist remote: .jpeg remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript/@fortawesome/fontawesome-free/js/all.jpeg doesn't exist remote: .jpg remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript/@fortawesome/fontawesome-free/js/all.jpg doesn't exist remote: as directory remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript/@fortawesome/fontawesome-free/js/all doesn't exist remote: looking for modules in /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/vendor remote: using description file: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/package.json (relative path: ./vendor) remote: Field 'browser' doesn't contain a valid alias configuration remote: using description file: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/package.json (relative path: ./vendor/@fortawesome/fontawesome-free/js/all) remote: no extension remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/vendor/@fortawesome/fontawesome-free/js/all doesn't exist remote: .mjs remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/vendor/@fortawesome/fontawesome-free/js/all.mjs doesn't exist remote: .js remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/vendor/@fortawesome/fontawesome-free/js/all.js doesn't exist remote: .sass remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/vendor/@fortawesome/fontawesome-free/js/all.sass doesn't exist remote: .scss remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/vendor/@fortawesome/fontawesome-free/js/all.scss doesn't exist remote: .css remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/vendor/@fortawesome/fontawesome-free/js/all.css doesn't exist remote: .module.sass remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/vendor/@fortawesome/fontawesome-free/js/all.module.sass doesn't exist remote: .module.scss remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/vendor/@fortawesome/fontawesome-free/js/all.module.scss doesn't exist remote: .module.css remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/vendor/@fortawesome/fontawesome-free/js/all.module.css doesn't exist remote: .png remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/vendor/@fortawesome/fontawesome-free/js/all.png doesn't exist remote: .svg remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/vendor/@fortawesome/fontawesome-free/js/all.svg doesn't exist remote: .gif remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/vendor/@fortawesome/fontawesome-free/js/all.gif doesn't exist remote: .jpeg remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/vendor/@fortawesome/fontawesome-free/js/all.jpeg doesn't exist remote: .jpg remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/vendor/@fortawesome/fontawesome-free/js/all.jpg doesn't exist remote: as directory remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/vendor/@fortawesome/fontawesome-free/js/all doesn't exist remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript/packs/node_modules doesn't exist or is not a directory remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/javascript/node_modules doesn't exist or is not a directory remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/app/node_modules doesn't exist or is not a directory remote: /tmp/node_modules doesn't exist or is not a directory remote: /node_modules doesn't exist or is not a directory remote: looking for modules in /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules remote: using description file: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/package.json (relative path: ./node_modules) remote: Field 'browser' doesn't contain a valid alias configuration remote: using description file: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/package.json (relative path: ./node_modules/@fortawesome/fontawesome-free/js/all) remote: no extension remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/@fortawesome/fontawesome-free/js/all doesn't exist remote: .mjs remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/@fortawesome/fontawesome-free/js/all.mjs doesn't exist remote: .js remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/@fortawesome/fontawesome-free/js/all.js doesn't exist remote: .sass remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/@fortawesome/fontawesome-free/js/all.sass doesn't exist remote: .scss remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/@fortawesome/fontawesome-free/js/all.scss doesn't exist remote: .css remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/@fortawesome/fontawesome-free/js/all.css doesn't exist remote: .module.sass remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/@fortawesome/fontawesome-free/js/all.module.sass doesn't exist remote: .module.scss remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/@fortawesome/fontawesome-free/js/all.module.scss doesn't exist remote: .module.css remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/@fortawesome/fontawesome-free/js/all.module.css doesn't exist remote: .png remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/@fortawesome/fontawesome-free/js/all.png doesn't exist remote: .svg remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/@fortawesome/fontawesome-free/js/all.svg doesn't exist remote: .gif remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/@fortawesome/fontawesome-free/js/all.gif doesn't exist remote: .jpeg remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/@fortawesome/fontawesome-free/js/all.jpeg doesn't exist remote: .jpg remote: Field 'browser' doesn't contain a valid alias configuration remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/@fortawesome/fontawesome-free/js/all.jpg doesn't exist remote: as directory remote: /tmp/build_96cef61f9af080d6aea1e5e90ef9c612/node_modules/@fortawesome/fontawesome-free/js/all doesn't exist remote: remote: remote: ! remote: ! Precompiling assets failed. remote: ! remote: ! Push rejected, failed to compile Ruby app. remote: remote: ! Push failed remote: Verifying deploy... remote: remote: ! Push rejected to thegecko88. remote: ```