NativeScript / NativeScript/angular

Migration angular 14 to 15

未关闭
#135 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

主要语言
TypeScript
星标
55
派生
13
平均合并
16 分钟
30 天内合并 PR
1

描述

while migrating from angular 14 to 15 running ng update @angular/core@15 @angular/cli@15 --force I get the error

Migration failed: Could not find any tsconfig file. Cannot run a migration to cleanup the deprecated relativeLinkResolution config option

A tsconfig file is available, its content is:

{
  "compilerOptions": {
    "strict": true,
    "allowJs": true,
    "resolveJsonModule": true,
    "esModuleInterop": true,
    "module": "esnext",
    "target": "ES2022",
    "moduleResolution": "node",
    "experimentalDecorators": true,
    "emitDecoratorMetadata": true,
    "noEmitHelpers": true,
    "noEmitOnError": true,
    "skipLibCheck": true,
    "plugins": [
      {
        "transform": "@nativescript/webpack/transformers/ns-transform-native-classes",
        "type": "raw"
      }
    ],
    "types": [
      "@types/jest",
      "jest",
      "node"
    ],
    "typeRoots": [
      "node_modules/@types"
    ],
    "lib": [
      "es2017",
      "dom"
    ],
    "baseUrl": ".",
    "paths": {
      "@templates/*": [
        "~/assets/templates/*"
      ],
      "~/*": [
        "src/*"
      ],
      "@/*": [
        "src/*"
      ]
    },
    "removeComments": false,
    "useDefineForClassFields": false
  },
  "include": [
    "src/app/activity.android.ts",
    "src/tests/**/*.ts",
    "src/**/*.ios.ts",
    "src/**/*.android.ts"
, "./application.android.ts"  ],
   "files": [
     "./src/app/activity.android.ts",
     "./src/main.ts",
    "./references.d.ts",
     "./src/polyfills.ts",
     "./application.android.ts"
   ],
  "exclude": [
    "node_modules",
    "platforms",
    "e2e"
  ],
  "angularCompilerOptions": {
    "enableI18nLegacyMessageIdFormat": false,
    "strictInjectionParameters": true,
    "strictInputAccessModifiers": true,
    "strictTemplates": true
  }
}

Angular dependecies

"@angular/animations": "^15.2.10",
    "@angular/common": "^15.2.10",
    "@angular/compiler": "^15.2.10",
    "@angular/core": "^15.2.10",
    "@angular/forms": "^15.2.10",
    "@angular/platform-browser": "^15.2.10",
    "@angular/platform-browser-dynamic": "^15.2.10",
    "@angular/router": "^15.2.10",

Angular dev dependencies:

"@angular-devkit/build-angular": "^15.2.11",
    "@angular/cli": "~15.2.11",
    "@angular/compiler-cli": "^15.2.10",

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先使用提供的 tsconfig 内容和依赖版本复现 ng update @angular/core@15 @angular/cli@15 --force。调查为什么 migration 报告不存在 tsconfig 文件,尽管已提供配置;完成标准是 Angular 14 到 15 的 migration 在没有此错误的情况下完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
angular, typescript
领域
build-system, tooling
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
32/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。