angular2-aot

    1熱度

    3回答

    我的當前角度項目在角度前開始支持AOT功能。現在我試圖讓它工作。我收到以下錯誤,我不知道這意味着什麼,我可以開始調試問題。有沒有人知道爲什麼會出現這個錯誤? 依賴 "@angular/animations": "^4.4.4", "@angular/common": "^4.4.4", "@angular/compiler": "^4.4.4", "@angular/core": "^4.4

    0熱度

    1回答

    所以我想創建一個Angular(4.4.4)Webpack(3.6.0)初學者與AOT構建,我遇到了一個問題,提取到一個單獨的捆綁的CSS(使用extract- text-webpack-plugin 3.0.1)。 當我運行我的prod構建webpack構建卡住在95% emitting。它永遠不會達到100%,並且永遠不會輸出dist包。起初,我嘗試使用style-loader(0.19.0)

    1熱度

    1回答

    我在嘗試使用文件加載器outputPath選項構建AOT版本時遇到了一個問題。生成的輸出是一個<img>標籤,並用引號括起來("<img src=images/world.png alt=world />")。 這隻發生在我的AOT構建中,而不是在我的開發版本中。所以我猜測在編譯週期中文件加載器被切斷,並且插入結果字符串。 版本: Angular: 4.4.4 @ngtools/webpack:

    2熱度

    1回答

    安裝了的WebPack的AOT插件(https://www.npmjs.com/package/@ngtools/webpack)後,dynamic requires不再起作用: // Example that used to work public getJson<T>(fileName: String): T { return require(`../../${fileName}_

    2熱度

    1回答

    我正在關注使用JitCompilerFactory加載運行時編譯器和自定義裝飾器以保留組件和模塊元數據的解決方案here。但隨着角CLI --build-optimizer標誌,我得到: ERROR Error: Cannot resolve all parameters for 'Parser'(?). Make sure that all the parameters are decorate

    2熱度

    1回答

    我想在我的角度項目運行AOT編譯,但是當我運行命令 "./node_modules/.bin/ngc" -p tsconfig-aot.json 我得到了以下錯誤: Error: Internal error: unknown identifier undefined at Object.importExpr$$1 [as importExpr] (..\node_modules\@

    1熱度

    3回答

    我想用時間前進來構建我的Angular4應用程序。 構建過程運行正常,並沒有錯誤,但是當我運行該應用程序我在控制檯收到此錯誤: ERROR Error: Runtime compiler is not loaded at J (vendor.ac8dafb82366354245dd.bundle.js:1) at t.compileModuleSync (vendor.ac8d

    1熱度

    1回答

    我的最終目標是讓用戶創建HTML(來自數據庫),並能夠在Angular SPA中進行導航。從後端顯示HTML的簡單方法是使用DomSanitizer,然後綁定到某個元素的innerHTML。當用戶創建的內容中的錨定標記<a href="/path/to/diffrent/page/in/app">重新啓動應用程序時,會出現問題。我想到了3個解決方案,他們都有問題。 注:我想充分利用AOT和構建優化

    0熱度

    1回答

    我不斷收到此錯誤,只要我離子建立android --prod。它適用於離子發射和離子運行。即使離子建立也沒關係。 Error: Cannot determine the module for class SupplierChequeModalPage in C:/wamp/www/pos/src/pages/supplier-cheque-modal/supplier-cheque -moda

    1熱度

    1回答

    我跟着this教程向我的應用添加了延遲加載。一切正常,本地服務器上的罰款,但是當我發表我的應用程序,我得到錯誤模塊不能found.I我採用了棱角分明的編譯器Plugin.Here是我的package.json "dependencies": { "@angular/animations": "^5.0.0", "@angular/cdk": "^5.0.0", "@angular/common":