Closed
Description
Also it prints the same error multiple times:
kamik@RED-X1C6 MINGW64 /d/sandbox/lazy-laoding-import (master)
$ ng build --aot
10% building 3/3 modules 0 active 5
Date: 2019-04-18T14:42:38.478Z
Hash: 6e7545d3226e44a51fd5
Time: 7384ms
chunk {main} main-es2015.js, main-es2015.js.map (main) 628 bytes [initial] [rendered]
chunk {polyfills} polyfills-es2015.js, polyfills-es2015.js.map (polyfills) 2.8 kB [initial] [rendered]
chunk {runtime} runtime-es2015.js, runtime-es2015.js.map (runtime) 6.08 kB [entry] [rendered]
chunk {styles} styles-es2015.js, styles-es2015.js.map (styles) 16.3 kB [initial] [rendered]
ERROR in src\app\app.module.ts(14,26): Error during template compile of 'AppModule'
Function expressions are not supported in decorators in 'ROUTES'
'ROUTES' contains the error at src\app\app.routes.ts(5,29)
Consider changing the function expression into an exported function.
Date: 2019-04-18T14:42:40.516Z
Hash: 384448c95268b8965133
Time: 9453ms
chunk {main} main-es5.js, main-es5.js.map (main) 625 bytes [initial] [rendered]
chunk {polyfills} polyfills-es5.js, polyfills-es5.js.map (polyfills) 358 kB [initial] [rendered]
chunk {runtime} runtime-es5.js, runtime-es5.js.map (runtime) 6.08 kB [entry] [rendered]
chunk {styles} styles-es5.js, styles-es5.js.map (styles) 16.3 kB [initial] [rendered]
ERROR in src\app\app.module.ts(14,26): Error during template compile of 'AppModule'
Function expressions are not supported in decorators in 'ROUTES'
'ROUTES' contains the error at src\app\app.routes.ts(5,29)
Consider changing the function expression into an exported function.
proposal is to run them serially instead:
- fail if errors after the first one
- might reduce memory pressure since the GC could run on objects created and no longer referenced between the builds