gpt4 book ai didi

angular - 无法加载架构 -- angular.json 文件

转载 作者:行者123 更新时间:2023-12-04 12:24:35 25 4
gpt4 key购买 nike

我在 angular.json 中遇到以下错误file ,其中架构未正确加载,出现错误无法加载架构,下面代码的第一行给了我错误,见下文

{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"mrr": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {

两者 angular.jsonnode_modules处于同一级别。

最佳答案

嗨,Abhishek 是一个与 Angular 9 或 Node 12 相关的问题,我遇到了同样的问题
我遇到了同样的问题,所以我回滚到节点 11 和 angular 8,一切都很好

[更新]
我更新了 Angular 和节点,一切都很好
问题在 9.1.6 中解决了,你可以在 github 上查看问题 https://github.com/angular/angular/issues/35154

我遵循的步骤

  • npm cache clean
  • npm install -g @angular/cli

  • If you are having trouble with npm install, use the -verbose option to see more details.


  • 毕竟这一切ng update

  • 这将修复此错误。

    关于angular - 无法加载架构 -- angular.json 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60759823/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com