Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/angular/31.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Angular ionic build browser--prod导致与库的ng2 vs相关的错误_Angular_Build_Production_Angular2 Aot_Ionic3 - Fatal编程技术网

Angular ionic build browser--prod导致与库的ng2 vs相关的错误

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

我正在用爱奥尼亚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
            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编译有关

我如何解决这个错误