NativeScript / NativeScript/angular

Migration angular 14 to 15

Open
#135 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
55
Forks
13
Avg merge
16m
Merged PRs (30d)
1

Description

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",

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing ng update @angular/core@15 @angular/cli@15 --force with the provided tsconfig content and dependency versions. Investigate why the migration reports that no tsconfig file exists despite the supplied configuration; done means the Angular 14-to-15 migration completes without this error.

Written by the indexing model from the issue text.

Assessment

Tech stack
angular, typescript
Domain
build-system, tooling
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.