My app is very slow until load finish when running on browser (I dare not speak about mobile uhhhh 10-15seconds) Yes, I do ng build --prod
and it's still slow.
So with angular cli beta 16 I try the new flag --aot And I get a lot of imports and declarations error:
0% compilingUnexpected value 'FileDropDirective' declared by the module 'AppModule'
Error: Unexpected value 'FileDropDirective' declared by the module 'AppModule'
at C:\Users\...\node_modules\@angular\compiler\bundles\compiler.umd.js:14174:33
at Array.forEach (native)
Then just for fun I comment 3 libs which did me this error, just to see if it will continue to compile... NO ! I get another error:
10% building modules 6/12 modules 6 active ...ode_modules\style-loader\addStyles.jsSyntaxError: Unexpected token ILLEGAL
at WebpackResourceLoader._evaluate (C:\Users\...\node_modules\@ngtools\webpack\src\resource_loader.js:75:24)
How achieve? thanks