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":