我的應用程序非常緩慢,直到加載完成時在瀏覽器上運行(我不敢說移動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