我有一个使用Angular的NS应用程序。一切都运行良好,直到我的Mac崩溃。我有一个新的,克隆存储库,运行所有步骤来设置我的环境(从NS站点)并尝试运行应用程序。但是,我收到以下错误:
处理node_modules失败。 RangeError:超出最大调用堆栈大小
这适用于iOS和Android。我删除了平台并再次添加它们,重新安装NS和所有工具,但没有任何帮助。我不确定这是一个NS,一个打字稿还是一个Angular错误,但不管怎样,我都没有想法。
奇怪的是,同样的代码在我的旧Mac上运行良好。
这是我的package.json:
{
"description": "My Application",
"license": "SEE LICENSE IN <your-license-filename>",
"readme": "My Application",
"repository": "<fill-your-repository-here>",
"nativescript": {
"id": "org.company.myapp",
"tns-ios": {
"version": "3.0.1"
},
"tns-android": {
"version": "3.0.1"
}
},
"dependencies": {
"@angular/animations": "~4.1.0",
"@angular/common": "~4.1.0",
"@angular/compiler": "~4.1.0",
"@angular/core": "~4.1.0",
"@angular/forms": "~4.1.0",
"@angular/http": "~4.1.0",
"@angular/platform-browser": "~4.1.0",
"@angular/router": "~4.1.0",
"@progress/nativescript-telerik-ui-pro": "^2.0.1",
"nativescript": "^3.0.1",
"nativescript-angular": "~3.0.0",
"nativescript-appversion": "^1.4.1",
"nativescript-loading-indicator": "^2.3.2",
"nativescript-push-notifications": "^0.1.3",
"nativescript-theme-core": "~1.0.2",
"reflect-metadata": "~0.1.8",
"rxjs": "~5.3.0",
"tns-core-modules": "~3.0.0",
"zone.js": "~0.8.2"
},
"devDependencies": {
"babel-traverse": "6.24.1",
"babel-types": "6.24.1",
"babylon": "6.17.1",
"lazy": "1.0.11",
"nativescript-dev-typescript": "~0.4.0",
"tns-platform-declarations": "^3.0.1",
"typescript": "~2.2.1"
}
}
&#13;
有没有人对可能导致这种情况的原因有任何想法?
谢谢。