我的项目有一个linting问题。每次我使用"ng lint"时,都会出现以下错误:
$ ng lint
Linting "app"...
An unhandled exception occurred: Maximum call stack size exceeded
See "C:Users6100BR~1AppDataLocalTempng-owDTzMangular-errors.log" for further details.
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
然而,如果我尝试运行应用程序或尝试构建它,一切对我来说都很好
版本:
- "@angular builders/custom webpack":"^8.2.0">
- "@angular devkit/build angular":"^0.800.0">
- "@angular/cli":"^8.0.0">
- "@angular/compiler":"^8.0.0">
- "@angular/compiler cli":"^8.0.0">
- "@棱角分明/核心":"^8.0.0">
- "@角度/柔性布局":"^8.0.0-beta">
- "@angular/language service":"^8.0.0">
- "@fullcalendar/angular":"^4.3.1">
- "@fullcalendar/core":"^4.3.1">
- "@fullcalendar/daygrid":"^4.3.0">
- "@fullcalendar/list":"^4.3.0">
- "@fullcalendar/timegrid":"^4.3.0">
- "@types/jquery":"^3.3.33">
- "可调整角度大小的元素":"^3.2.6">
- "jquery":"^3.4.1.">
- "rxjs":"^6.5.0">
- "sass":"^1.23.0">
- "typescript":"~3.4.0">
- "webpack捆绑包分析器":"^3.6.0">
- "zone.js":"~0.9.0">
知道如何解决这个问题吗?或者有没有办法找到一个更容易理解的错误?
您可以向package.json
添加脚本,如下所示:
"scripts": {
"lint": "node --max_old_space_size=8192 --harmony node_modules/@angular/cli/bin/ng lint"
}
并执行:
npm run lint