RangeError:Angular 4中超出的最大调用堆栈大小

时间:2018-05-08 10:26:15

标签: angular laravel-5

当我运行ng build --prod版本然后显示以下错误。

ERROR in RangeError: Maximum call stack size exceeded
at /var/www/html/projectName/node_modules/@angular/compiler/bundles/compiler.umd.js:1684:33
at Array.map (<anonymous>)
at _CompileValueConverter.ValueTransformer.visitArray (/var/www/html/projectName/node_modules/@angular/compiler/bundles/compiler.umd.js:1684:20)
at visitValue (/var/www/html/projectName/node_modules/@angular/compiler/bundles/compiler.umd.js:1648:24)
at extractIdentifiers (/var/www/html/projectName/node_modules/@angular/compiler/bundles/compiler.umd.js:16270:5)
at CompileMetadataResolver._getEntryComponentsFromProvider (/var/www/html/projectName/node_modules/@angular/compiler/bundles/compiler.umd.js:16071:9)
at /var/www/html/projectName/node_modules/@angular/compiler/bundles/compiler.umd.js:16036:83
at Array.forEach (<anonymous>)
at CompileMetadataResolver._getProvidersMetadata (/var/www/html/projectName/node_modules/@angular/compiler/bundles/compiler.umd.js:15999:19)
at /var/www/html/projectName/node_modules/@angular/compiler/bundles/compiler.umd.js:16001:23
at Array.forEach (<anonymous>)
at CompileMetadataResolver._getProvidersMetadata (/var/www/html/projectName/node_modules/@angular/compiler/bundles/compiler.umd.js:15999:19)
at /var/www/html/projectName/node_modules/@angular/compiler/bundles/compiler.umd.js:15574:63
at Array.forEach (<anonymous>)
at CompileMetadataResolver.getNgModuleMetadata (/var/www/html/projectName/node_modules/@angular/compiler/bundles/compiler.umd.js:15565:49)
at CompileMetadataResolver.getNgModuleSummary (/var/www/html/projectName/node_modules/@angular/compiler/bundles/compiler.umd.js:15507:52)

我正在使用棱角分明 @ angular / cli:1.4.4,node:8.9.0,npm:5.5.1

0 个答案:

没有答案