简体   繁体   English

部署到App Engine时找不到tsconfig.app.json

[英]tsconfig.app.json not found when deploying to App Engine

I'm trying to deploy an Angular-cli 6 Universal app to App Engine for the first time. 我正在尝试第一次将Angular-cli 6 Universal应用程序部署到App Engine。 I'm getting the error: 我收到错误消息:

ENOENT: no such file or directory, stat '/app/src/tsconfig.app.json'

I don't have any issues building or testing the app. 我在构建或测试应用程序时没有任何问题。 What determines the path? 什么决定路径? I've looked at the migration guide that describes changes from angular-cli.json to angular.json, but I can't find the solution. 我看过迁移指南,该指南描述了从angular-cli.json到angular.json的更改,但是找不到解决方案。

tsconfig.json (root project folder) tsconfig.json(项目根目录)

{
  "compileOnSave": false,
  "compilerOptions": {
    "baseUrl": "./",
    "outDir": "./dist/out-tsc",
    "sourceMap": true,
    "declaration": false,
    "moduleResolution": "node",
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es5",
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2017",
      "dom"
    ]
  }
}

tsconfig.app.json (in /src under the root) tsconfig.app.json(在/ src根目录下)

{
  "extends": "../tsconfig.json",
  "compilerOptions": {
    "outDir": "../out-tsc/app",
    "module": "es2015",
    "typeRoots": [
      "node_modules/@types"
    ],
    "types": [
      "jasmine", "node"
    ],
    "lib": [
      "es2017",
      "dom"
    ]
  },
  "exclude": [
    "src/test.ts",
    "**/*.spec.ts"
  ]
}

angular.json has this reference angular.json有此参考

"tsConfig": "src/tsconfig.spec.json"

I found the solution. 我找到了解决方案。 I was excluding some files in app.yaml that I should not have excluded. 我在app.yaml中排除了一些我不应该排除的文件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM