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 摘要。