When building the client with AOT enabled (ng build --prod --aot=true), it always fails with: ERROR in Cannot read property 'length' of undefined. Changing to ng build --prod --aot=false works. For now, the code uses --aot=false to buld releases, but this needs fixed eventually to maintain a highly performant UI.
$ ng build --prod --aot=true
10% building modules 0/1 modules 1 active ...s/phi/phi/packages/client/src/ma 10% building modules 1/2 modules 1 active .../phi/packages/client/src/polyfil 10% building modules 2/3 modules 1 active ...i/phi/packages/client/src/styles 10% building modules 3/4 modules 1 active ...i/phi/packages/client/src/styles 10% building modules 3/5 modules 2 active ...s/phi/phi/packages/client/src/ma 10% building modules 3/6 modules 3 active .../phi/packages/client/src/polyfil 10% building modules 4/6 modules 2 active .../phi/packages/client/src/polyfil 10% building modules 5/6 modules 1 active ...i/phi/packages/client/src/styles 10% building modules 6/7 modules 1 active ...i/phi/packages/client/src/stylesDate: 2018-05-03T19:03:17.832Z
Hash: 038405ca27fb0ef69cfb
Time: 1415ms
chunk {0} styles.26c809ae2e4889872440.bundle.css (styles) 56.8 kB [initial] [rendered]
chunk {1} polyfills.997d8cc03812de50ae67.bundle.js (polyfills) 84 bytes [initial] [rendered]
chunk {2} main.ee32620ecd1edff94184.bundle.js (main) 84 bytes [initial] [rendered]
chunk {3} inline.318b50c57b4eba3d437b.bundle.js (inline) 796 bytes [entry] [rendered]
ERROR in Cannot read property 'length' of undefined
When building the client with AOT enabled (
ng build --prod --aot=true
), it always fails with:ERROR in Cannot read property 'length' of undefined
. Changing tong build --prod --aot=false
works. For now, the code uses --aot=false to buld releases, but this needs fixed eventually to maintain a highly performant UI.