Angular: Upgrade Angular version Step by step Angular 11 to Angular 13

Поділитися
Вставка
  • Опубліковано 9 лис 2024

КОМЕНТАРІ • 64

  • @RiyaSingh-tv1du
    @RiyaSingh-tv1du 2 роки тому

    It's really important vdo for us

  • @esaramchiary4152
    @esaramchiary4152 2 роки тому

    Nice

  • @sandipsathe644
    @sandipsathe644 2 роки тому +1

    Thank you sir keep doing good work

  • @gooligarirajasekhar6704
    @gooligarirajasekhar6704 Рік тому +1

    Good one

  • @shardabaviskar5461
    @shardabaviskar5461 2 роки тому

    Informative vdo.... Excellent

  • @SonuGupta-tj5cr
    @SonuGupta-tj5cr 2 роки тому +1

    Helpful info for me.. Thank u sir ji

  • @ranipatil7976
    @ranipatil7976 2 роки тому

    Great vdo

  • @mrthakur2687
    @mrthakur2687 2 роки тому

    Nice information

  • @abirhasanalamin7432
    @abirhasanalamin7432 2 роки тому

    Very important

  • @sanauullahgamer6119
    @sanauullahgamer6119 2 роки тому

    Nic teaching

  • @rajendraramkoli2251
    @rajendraramkoli2251 2 роки тому

    Good job... Keep it up

  • @pinkipinki6125
    @pinkipinki6125 2 роки тому

    Thanks for the vdo

  • @suhelahmed4699
    @suhelahmed4699 2 роки тому

    Nice content

  • @harounbouhdid9046
    @harounbouhdid9046 2 роки тому

    Nice Thank you

  • @komalmonty8191
    @komalmonty8191 2 роки тому

    Superb work

  • @kirtisonar9389
    @kirtisonar9389 2 роки тому

    Nice info...

  • @nand1931
    @nand1931 2 роки тому

    Very nice 👌

  • @gayasristudio5337
    @gayasristudio5337 2 роки тому

    Nice work

  • @zubi1953
    @zubi1953 2 роки тому

    Nice ❤️

  • @razaullahofficial9880
    @razaullahofficial9880 2 роки тому

    Super sir ge

  • @sanaullahposhtanotelenend7138
    @sanaullahposhtanotelenend7138 2 роки тому

    Thanks

  • @a-sports2
    @a-sports2 2 роки тому

    Helpful

  • @কৃষিটিভি-ছ৪হ

    💞💞💞

  • @JM-kz7zf
    @JM-kz7zf 2 роки тому +2

    Hi, i use angular material in my project, i have this problem :
    core.js:157 The Angular Material version (12.2.13) does not match the Angular CDK version (13.3.5).
    Please ensure the versions of these two packages exactly match.
    can you help me ?

    • @DevBugFix
      @DevBugFix  2 роки тому +1

      try to run this cmd
      ng add @angular/material@latest
      did you check this checkbox "I use Angular Material" from this update.angular.io/

    • @JM-kz7zf
      @JM-kz7zf 2 роки тому

      @@DevBugFix, yes i checked Angular material checkbox,
      but when i resolv this with a "@angular/material": "^13.2.6", several problems occur... tslint, polyfill etc...
      "dependencies": {
      "@angular/animations": "~13.3.5",
      "@angular/cdk": "~13.3.5",
      "@angular/common": "~13.3.5",
      "@angular/compiler": "~13.3.5",
      "@angular/core": "~13.3.5",
      "@angular/forms": "~13.3.5",
      "@angular/router": "~13.3.5",
      "@angular/platform-browser": "~13.3.5",
      "@angular/platform-browser-dynamic": "~13.3.5",
      "@angular/material": "^12.2.6",
      "@angular/material-moment-adapter": "^12.2.6",
      "@ngx-translate/core": "^13.0.0",
      "@ngx-translate/http-loader": "^6.0.0",
      "@tinymce/tinymce-angular": "^5.0.1",
      "keycloak-js": "^12.0.4",
      "moment": "^2.29.1",
      "ngx-mat-select-search": "^4.1.1",
      "rxjs": "~7.5.5",
      "tinymce": "^5.9.2",
      "zone.js": "^0.11.4"
      },

    • @DevBugFix
      @DevBugFix  2 роки тому +1

      you did not follow the upgrade guideline properly or missed some steps
      undo all changes
      delete node_module
      npm install
      npm run build if you see any errors fix that
      then follow the upgrade guideline,
      package version mismatch is not small issue, sometime its takes day to resolve
      so always follow angular upgrade guideline

    • @JM-kz7zf
      @JM-kz7zf 2 роки тому +2

      @@DevBugFix, thx for your support :) i find the solution for my problem !
      i try this version for : "@angular/cdk": "~12.2.13" and "@angular/material": "^12.0.0" is ok for npm install work !

  • @SayeedImtac
    @SayeedImtac Рік тому

    Hi, Thanks for the video. I am using angular 9.0 and want to update to 16. I am trying to update it to 10.0 first. So I run command 'npx @angular/cli@10 update @angular/core@10 @angular/cli@10'. But getting error as below.
    '× Migration failed: Incompatible peer dependencies found.
    Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together.
    You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later.'
    Please help.

    • @DevBugFix
      @DevBugFix  Рік тому +1

      use --force option like this
      npx @angular/cli@10 update @angular/core@10 @angular/cli@10 --force

    • @e-fold6552
      @e-fold6552 Рік тому

      Is that necessary to do step by step update. Can't I directly update 9 to 16 ?

    • @DevBugFix
      @DevBugFix  Рік тому

      @@e-fold6552Angular Team don't recommend major upgrade , you should update step by step otherwise 99% chance application will not work.
      you can try and share your experience with us.

  • @devlopeweb5547
    @devlopeweb5547 Рік тому

    Using package manager: 'npm'
    Collecting installed dependencies...
    Found 0 dependencies.
    Package '@angular/core' is not a dependency.
    how to resolve

    • @DevBugFix
      @DevBugFix  Рік тому

      undo all changes
      delete node_module
      npm install
      npm run build if you see any errors fix that
      then follow the upgrade guideline,
      always follow angular upgrade guideline

  • @syedeliyaz1993
    @syedeliyaz1993 2 роки тому

    Getting heap issue while updating version

    • @DevBugFix
      @DevBugFix  2 роки тому

      Share error stack here

  • @syedeliyaz1993
    @syedeliyaz1993 2 роки тому

    Bro geeting heap issue after migrating to 11 from 10 how to fix

    • @DevBugFix
      @DevBugFix  2 роки тому

      share error stack here.
      tips. Many times, issues are fixed by doing the following things.
      1: run npm install
      2: delete node_module folder run npm install
      3: restart vs code.
      4: restart ng serve command.

    • @syedeliyaz1993
      @syedeliyaz1993 2 роки тому

      @@DevBugFix how to delete node modules folder which command In good we have more

    • @DevBugFix
      @DevBugFix  2 роки тому

      simply press right click on node_module folder and click delete . if you see error then close vs code or any ide which you are using

  • @pragyapriya9049
    @pragyapriya9049 2 роки тому

    I am getting ng command not found in my git bash. Could anyone please let me know how to fix it. Any help is appreciated.

    • @DevBugFix
      @DevBugFix  2 роки тому

      you need to install Angular cli , run this command
      npm install -g @angular/cli
      after running this command you can use ng command
      if you have installed this cli already
      follow these steps
      npm uninstall -g angular-cli
      npm uninstall -g @angular/cli
      npm cache clean
      Delete the C:\Users\%YOU%\AppData\Roaming
      pm
      ode_modules\@angular folder.
      Reboot, then, finally, run:
      npm install -g @angular/cli

    • @pragyapriya9049
      @pragyapriya9049 2 роки тому +1

      @@DevBugFix thank you 😊

  • @AnkitKumar-xo3ke
    @AnkitKumar-xo3ke Рік тому

    Bro i am getting error while upgrading from 10 to 11

    • @DevBugFix
      @DevBugFix  Рік тому

      Share here

    • @DevBugFix
      @DevBugFix  Рік тому

      i have added in angular 9 now i am on angular 15 ,no error came

  • @harikakagga5908
    @harikakagga5908 2 роки тому

    bro i'm getting the migration error

    • @DevBugFix
      @DevBugFix  2 роки тому

      share error here

    • @harikakagga5908
      @harikakagga5908 2 роки тому

      @@DevBugFix × Migration failed: Incompatible peer dependencies found.
      Peer dependency warnings when installing dependencies means that those dependencies might not work correctly together.
      You can use the '--force' option to ignore incompatible peer dependencies and instead address these warnings later.

    • @DevBugFix
      @DevBugFix  2 роки тому

      @@harikakagga5908 use --force flag .
      .i.e. npm xxxxxx --force
      Creating a backup before migration it's a good thing.

  • @pragyapriya9049
    @pragyapriya9049 2 роки тому

    After performing 1st step, i am migration failed: incompatible peer dependencies found - @angular-eslint/builder has incompatible peer dependency to @angukar/cli. Please help me in this

    • @DevBugFix
      @DevBugFix  2 роки тому

      Ensure your node version is greater than 10
      you can check by running this command node -v
      use flag --force with commands
      for example "ng update @angular/core@12 @angular/cli@12 --force" don't use this command , its only for example .

    • @pragyapriya9049
      @pragyapriya9049 2 роки тому

      @@DevBugFix It worked after adding --force.
      I tried --force for 'ng update @angular/material@12 --force' as again same migration error was coming. After doing 'ng update' when I am trying with 'ng update @angular/cli@12 --migrate-only production-by-default' -> i am getting error: A single package must be specified when using the 'migrate-only' option.
      Please help me in this. Thank you.
      Node version is v18.7.0

    • @DevBugFix
      @DevBugFix  2 роки тому

      create fresh copy of code ,
      npm install ,
      ng serve ,
      if no error comes in ng serve
      follow my video from beginning
      follow the instruction from site which i showed in video

    • @pragyapriya9049
      @pragyapriya9049 2 роки тому

      @@DevBugFix after doing the same, i am still getting migration error with "ng update @angular/core@12 @angular/cli@12".
      Migration error: incompatible peer dependency @angular-eslint/builder.
      My node version is 16.17.0 and npm is 8.15.0
      I am new to angular and really not understanding the error. Could you please help me in this. Thank you

    • @DevBugFix
      @DevBugFix  2 роки тому

      @@pragyapriya9049 your previous version is angular 11? for peer dependency use --force flag, are you following angular upgrade guide which i showed in video ?

  • @ranipatil7976
    @ranipatil7976 2 роки тому

    Great vdo

  • @eshaboro5959
    @eshaboro5959 2 роки тому

    Nice

  • @muynatiboro6851
    @muynatiboro6851 2 роки тому

    Nice

  • @rimjemtapa3964
    @rimjemtapa3964 2 роки тому

    Nice

  • @ringkhangboro3577
    @ringkhangboro3577 2 роки тому

    Nice

  • @aqsaaqsa1737
    @aqsaaqsa1737 2 роки тому

    Nice