Skip to content

Instantly share code, notes, and snippets.

@dancancro
Created August 9, 2017 14:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dancancro/2417394ff9afa8661417f189e21ea092 to your computer and use it in GitHub Desktop.
Save dancancro/2417394ff9afa8661417f189e21ea092 to your computer and use it in GitHub Desktop.
Error running AOT build with AngularClass configs
[01:42:26] (angularclass) webapp
// ♥ npm run build:aot
> angular-starter@6.0.0 build:aot /Users/Dan/work/a/gba
> npm run build:aot:prod
> angular-starter@6.0.0 build:aot:prod /Users/Dan/work/a/gba
> npm run clean:dist && npm run clean:aot && cross-env BUILD_AOT=1 npm run webpack -- --config config/webpack.prod.js --progress --profile --bail
> angular-starter@6.0.0 clean:dist /Users/Dan/work/a/gba
> npm run rimraf -- dist
> angular-starter@6.0.0 rimraf /Users/Dan/work/a/gba
> rimraf "dist"
> angular-starter@6.0.0 clean:aot /Users/Dan/work/a/gba
> npm run rimraf -- compiled
> angular-starter@6.0.0 rimraf /Users/Dan/work/a/gba
> rimraf "compiled"
> angular-starter@6.0.0 webpack /Users/Dan/work/a/gba
> node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js "--config" "config/webpack.prod.js" "--progress" "--profile" "--bail"
Starting compilation using the angular compiler.
(node:24930) DeprecationWarning: Chunk.modules is deprecated. Use Chunk.getNumberOfModules/mapModules/forEachModule/containsModule instead.
Angular compilation done, starting webpack bundling.
10% building modules 0/2 modules 2 active ...a/src/main/webapp/main.browser.aot.ts
[at-loader] Using typescript@2.3.4 from typescript and "tsconfig.json" from /Users/Dan/work/a/gba/tsconfig.webpack.json.
10% building modules 3/4 modules 1 active ...in/webapp/app/app.module.ngfactory.ts(node:24930) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56
parseQuery() will be replaced with getOptions() in the next major version of loader-utils.
16843ms building modules
24ms sealing
0ms optimizing
0ms basic module optimization
5ms module optimization
0ms advanced module optimization
5ms basic chunk optimization
0ms chunk optimization
12ms advanced chunk optimization
3ms module and chunk tree optimization
1ms chunk modules optimization
0ms advanced chunk modules optimization
4ms module reviving
9ms module order optimization
18ms module id optimization
3ms chunk reviving
3ms chunk order optimization
15ms chunk id optimization
32ms hashing
0ms module assets processing
73ms chunk assets processing
20ms additional chunk assets processing
0ms recording
8792ms additional asset processing
600ms chunk asset optimization
94% asset optimization
[at-loader] Checking started in a separate process...
[at-loader] Ok, 4.602 sec.
MergetJsonsWebpackPlugin emit...
5109ms asset optimization
126ms emitting
Hash: 04516f9f439ff2f545ac
Version: webpack 3.4.1
Time: 75333ms
[+0yd] ./src/main/webapp/main.browser.aot.ts 1.02 kB {1} [built]
factory:215ms building:13810ms = 14025ms
[C1/c] ./compiled/src/main/webapp/app/app.module.ngfactory.ts 3.21 kB {1} [built] [failed] [1 error]
[] -> factory:453ms building:915ms = 1368ms
[DuR2] (webpack)/buildin/global.js 509 bytes {0} {1} [built]
[] -> factory:1ms building:1ms = 2ms
[bkjr] ./src/main/webapp/app/environment.ts 1.08 kB {1} [built]
[] -> factory:397ms building:54ms dependencies:925ms = 1376ms
[dWup] ./src/main/webapp/polyfills.browser.ts 1.16 kB {0} [built]
factory:52ms building:9542ms = 9594ms
[eOpT] ./src/main/webapp lazy 160 bytes {1} [built]
[] -> factory:127ms building:8ms = 135ms
+ 309 hidden modules
ERROR in ./compiled/src/main/webapp/app/app.module.ngfactory.ts
Module build failed: Error: Can't resolve './bernie/bernie.module' in '/Users/Dan/work/a/gba/src/main/webapp/app'
at onError (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/Resolver.js:61:15)
at loggingCallbackWrapper (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
at runAfter (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/Resolver.js:158:4)
at innerCallback (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/Resolver.js:146:3)
at loggingCallbackWrapper (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
at next (/Users/Dan/work/a/gba/node_modules/tapable/lib/Tapable.js:252:11)
at /Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/UnsafeCachePlugin.js:40:4
at loggingCallbackWrapper (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
at runAfter (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/Resolver.js:158:4)
at innerCallback (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/Resolver.js:146:3)
at loggingCallbackWrapper (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
at next (/Users/Dan/work/a/gba/node_modules/tapable/lib/Tapable.js:252:11)
at innerCallback (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/Resolver.js:144:11)
at loggingCallbackWrapper (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
at next (/Users/Dan/work/a/gba/node_modules/tapable/lib/Tapable.js:249:35)
at resolver.doResolve.createInnerCallback (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:44:6)
at loggingCallbackWrapper (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
at afterInnerCallback (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/Resolver.js:168:10)
at loggingCallbackWrapper (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
at next (/Users/Dan/work/a/gba/node_modules/tapable/lib/Tapable.js:252:11)
at innerCallback (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/Resolver.js:144:11)
at loggingCallbackWrapper (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
at next (/Users/Dan/work/a/gba/node_modules/tapable/lib/Tapable.js:249:35)
at resolver.doResolve.createInnerCallback (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/DescriptionFilePlugin.js:44:6)
at loggingCallbackWrapper (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
at runAfter (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/Resolver.js:158:4)
at innerCallback (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/Resolver.js:146:3)
at loggingCallbackWrapper (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
at next (/Users/Dan/work/a/gba/node_modules/tapable/lib/Tapable.js:252:11)
at runAfter (/Users/Dan/work/a/gba/node_modules/enhanced-resolve/lib/Resolver.js:158:4)
@ ./src/main/webapp/main.browser.aot.ts 10:0-122
Child html-webpack-plugin for "index.html":
[+kWe] ./node_modules/html-webpack-plugin/lib/loader.js!./src/main/webapp/index.html 3.61 kB {0} [built]
factory:10ms building:39ms = 49ms
[3IRH] (webpack)/buildin/module.js 517 bytes {0} [built]
[] -> factory:72ms building:794ms = 866ms
[DuR2] (webpack)/buildin/global.js 509 bytes {0} [built]
[] -> factory:72ms building:795ms = 867ms
+ 1 hidden module
npm ERR! Darwin 16.7.0
npm ERR! argv "/Users/Dan/.nvm/versions/node/v6.11.0/bin/node" "/Users/Dan/.nvm/versions/node/v6.11.0/bin/npm" "run" "webpack" "--" "--config" "config/webpack.prod.js" "--progress" "--profile" "--bail"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! angular-starter@6.0.0 webpack: `node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js "--config" "config/webpack.prod.js" "--progress" "--profile" "--bail"`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the angular-starter@6.0.0 webpack script 'node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js "--config" "config/webpack.prod.js" "--progress" "--profile" "--bail"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-starter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js "--config" "config/webpack.prod.js" "--progress" "--profile" "--bail"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular-starter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular-starter
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Dan/work/a/gba/npm-debug.log
npm ERR! Darwin 16.7.0
npm ERR! argv "/Users/Dan/.nvm/versions/node/v6.11.0/bin/node" "/Users/Dan/.nvm/versions/node/v6.11.0/bin/npm" "run" "build:aot:prod"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! angular-starter@6.0.0 build:aot:prod: `npm run clean:dist && npm run clean:aot && cross-env BUILD_AOT=1 npm run webpack -- --config config/webpack.prod.js --progress --profile --bail`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-starter@6.0.0 build:aot:prod script 'npm run clean:dist && npm run clean:aot && cross-env BUILD_AOT=1 npm run webpack -- --config config/webpack.prod.js --progress --profile --bail'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-starter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run clean:dist && npm run clean:aot && cross-env BUILD_AOT=1 npm run webpack -- --config config/webpack.prod.js --progress --profile --bail
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular-starter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular-starter
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Dan/work/a/gba/npm-debug.log
npm ERR! Darwin 16.7.0
npm ERR! argv "/Users/Dan/.nvm/versions/node/v6.11.0/bin/node" "/Users/Dan/.nvm/versions/node/v6.11.0/bin/npm" "run" "build:aot"
npm ERR! node v6.11.0
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! angular-starter@6.0.0 build:aot: `npm run build:aot:prod`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the angular-starter@6.0.0 build:aot script 'npm run build:aot:prod'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular-starter package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! npm run build:aot:prod
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs angular-starter
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls angular-starter
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /Users/Dan/work/a/gba/src/main/webapp/npm-debug.log
[01:45:09] (angularclass) webapp
// ♥
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment