Angular ionic build browser--prod导致与库的ng2 vs相关的错误
我正在用爱奥尼亚3开发一个网络应用。我需要使用NG2VSforLibrary作为虚拟滚动组件,因为本机虚拟滚动无法正常工作。在开发模式中,构建过程进展顺利。但是,当我制作一个产品时,我会出现以下错误:Angular ionic build browser--prod导致与库的ng2 vs相关的错误,angular,build,production,angular2-aot,ionic3,Angular,Build,Production,Angular2 Aot,Ionic3,我正在用爱奥尼亚3开发一个网络应用。我需要使用NG2VSforLibrary作为虚拟滚动组件,因为本机虚拟滚动无法正常工作。在开发模式中,构建过程进展顺利。但是,当我制作一个产品时,我会出现以下错误: ionic-app-script task: "build" [13:08:32] Error: Error encountered resolving symbol values statically. Could not resolve ng2-vs-for relative to
ionic-app-script task: "build"
[13:08:32] Error: Error encountered resolving symbol values statically. Could not resolve ng2-vs-for relative to
C:/MyApp/src/app/app.module.ts., resolving symbol AppModule in
C:/MyApp/src/app/app.module.ts, resolving symbol AppModule in
C:/MyApp/src/app/app.module.ts
Error: Error encountered resolving symbol values statically. Could not resolve ng2-vs-for relative to C:/MyApp/src/app/app.module.ts., resolving symbol AppModule in C:/MyApp/src/app/app.module.ts, resolving symbol AppModule in C:/MyApp/src/app/app.module.ts
at Error (native)
at syntaxError (C:\MyApp\node_modules\@angular\compiler\bundles\compiler.umd.js:1513:34)
at simplifyInContext (C:\MyApp\node_modules\@angular\compiler\bundles\compiler.umd.js:23316:23)
at StaticReflector.simplify (C:\MyApp\node_modules\@angular\compiler\bundles\compiler.umd.js:23328:13)
at StaticReflector.annotations (C:\MyApp\node_modules\@angular\compiler\bundles\compiler.umd.js:22794:60)
at NgModuleResolver.resolve (C:\MyApp\node_modules\@angular\compiler\bundles\compiler.umd.js:13352:70)
at CompileMetadataResolver.getNgModuleMetadata (C:\MyApp\node_modules\@angular\compiler\bundles\compiler.umd.js:13937:60)
at addNgModule (C:\MyApp\node_modules\@angular\compiler\bundles\compiler.umd.js:22526:58)
at C:\MyApp\node_modules\@angular\compiler\bundles\compiler.umd.js:22537:14
at Array.forEach (native)
我认为这一定与AOT编译有关
我如何解决这个错误