最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

运行应用程序时无法解析模块@ angularcore错误中的错误

IT培训 admin 7浏览 0评论

运行应用程序时无法解析模块@ angular / core错误中的错误

无法解析模块@ angular / core中的错误

我创建了Ionic App,并在运行时出现上述错误

我的tsconfig如下图:

  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "module": "esnext",
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "importHelpers": true,
    "target": "es2015",
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2018",
      "dom"
    ],
    "paths": {
      "@shared/*": [
        "src/app/shared/*"
      ]
    }
  },
  "angularCompilerOptions": {
    "fullTemplateTypeCheck": true,
    "strictInjectionParameters": true
  }
}```

error while running app
回答如下:

运行应用程序时无法解析模块@ angular / core错误中的错误

无法解析模块@ angular / core中的错误

我创建了Ionic App,并在运行时出现上述错误

我的tsconfig如下图:

  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "module": "esnext",
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "importHelpers": true,
    "target": "es2015",
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2018",
      "dom"
    ],
    "paths": {
      "@shared/*": [
        "src/app/shared/*"
      ]
    }
  },
  "angularCompilerOptions": {
    "fullTemplateTypeCheck": true,
    "strictInjectionParameters": true
  }
}```

error while running app
回答如下:
发布评论

评论列表 (0)

  1. 暂无评论