frosch
Joined 8/12/2019
frosch said almost 5 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: ```

frosch said almost 5 years ago on Using Bootstrap Themes :
``` PS C:\code\thegecko> yarn install yarn install v1.21.1 warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json. [1/4] Resolving packages... success Already up-to-date. Done in 0.56s. ``` yarn is working and if i run the rails server local, everything is working fine

frosch said almost 5 years ago on Using Bootstrap Themes :
yeah yarn is going threw. i tested now deploying without fontawesome and the app is building fine and working.

frosch said almost 5 years ago on In Depth with Docker Compose :
Hey iam using docker with 6 rails microservices. Everytime i start the containers i get huge output of logs, is there a way to minify that? Just want to give out something like " 6 of 6 containers startet succesfully" as example.