我的应用程序非常缓慢,直到加载完成时在浏览器上运行(我不敢说移动uhhhh 10-15秒)是的,我做的是ng build --prod
,它仍然很慢。使用标志时模块Z导入的意外值X -
因此,与角CLI公测16我尝试新的标志--aot 我也得到了很多的进口和声明错误:
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)
然后只是为了好玩我评论3个库,其骗了我这个错误,只是为了看看它是否会继续编译...不!我得到另一个错误:
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)
如何实现?谢谢
你能告诉我们一些源代码吗?你的AppModule和FileDropDirective;) –
你在这里:http://pastebin.com/fxAUmDBF – istiti