Migrate An Angular 11 Project to 17: Step-by-Step Guide

Поделиться
HTML-код
  • Опубликовано: 3 янв 2025

Комментарии • 105

  • @kishorekumarreddykadapa2119
    @kishorekumarreddykadapa2119 5 месяцев назад +8

    I tried using AI tools for my Angular 17 migration and ran into issues. This video helped me resolve them. dont depend on AI tools, but detailed tutorials like this are essential. Thanks!

    • @WebTechTalk
      @WebTechTalk  5 месяцев назад

      @@kishorekumarreddykadapa2119 Thank you so much 🙏

  • @visionprofessional6746
    @visionprofessional6746 8 дней назад +1

    goooooooooooooooood. exelent ....

  • @ice187666
    @ice187666 Месяц назад +1

    This video helped me to migrate easily my app to 17 standalone. Thanks a lot for all the tips. Specially these angular core commands (control-flow and standalone)

    • @WebTechTalk
      @WebTechTalk  Месяц назад

      Happy to hear that this video helped you in migrating your angular app.

  • @harshparikh4683
    @harshparikh4683 7 месяцев назад +2

    nice work! very detailed step by step guide.

  • @MukeshSharma-xd4dn
    @MukeshSharma-xd4dn 9 месяцев назад +1

    Superb video dude. Thank you so much.

  • @prashanthreddy1491
    @prashanthreddy1491 3 месяца назад +1

    Clear and clarity explanation

  • @ChakrapaniNandi
    @ChakrapaniNandi 3 месяца назад +1

    Thanks for the great video, its clear all my queries :)

  • @SohaAnjum-w6k
    @SohaAnjum-w6k 4 месяца назад +1

    thanks alot. quick one and very helpful

  • @laurentiualexandru3475
    @laurentiualexandru3475 7 месяцев назад +1

    Well done, it helped me in my work. Keep it up

  • @muhammedjamsheerpattambi4635
    @muhammedjamsheerpattambi4635 6 месяцев назад +1

    Excellent content. Thank you very much!🤩

  • @rajeshbt1772
    @rajeshbt1772 5 месяцев назад +1

    Excellent 🎉 explanation

    • @WebTechTalk
      @WebTechTalk  5 месяцев назад

      @@rajeshbt1772 Thank you

  • @awunnenb
    @awunnenb Месяц назад

    Nice video! Thank you!!!

  • @jayapalagowda
    @jayapalagowda 9 месяцев назад +1

    Excellent 🤗

  • @Wh---
    @Wh--- 22 дня назад +1

    8:00 -- 17V syntax changing

  • @sushantkunkekar2155
    @sushantkunkekar2155 10 месяцев назад +1

    Super🎉

  • @akkii25
    @akkii25 4 месяца назад +1

    Great tutorial!!
    Although I have few queries
    How to take care of the child routes?
    How does the lazy loading works if we have provided the routes in main.ts?

    • @WebTechTalk
      @WebTechTalk  4 месяца назад

      Child routes and lazy loading works similar to previous versions.

  • @sudheerkumar-tp1mg
    @sudheerkumar-tp1mg 10 месяцев назад +1

    awsome

  • @RaghuRam-y8y
    @RaghuRam-y8y 2 месяца назад +1

    while migrating to standalone components. after the 3rd and last step. i am getting blank white screen when serving the app. no build errors and no console errors. can you throw some light on what can be the issue?. BTW great video.

    • @WebTechTalk
      @WebTechTalk  2 месяца назад +1

      If there are no errors it is difficult to find the root cause. Please check whether the routes and I router outlet are correct after migration. Also instead of the home page try navigating to some other page directly using the url.

    • @RaghuRam-y8y
      @RaghuRam-y8y 2 месяца назад

      ​@@WebTechTalk tried navigating to other page through url but still blank white page. What things i need to check to find the issue?. Upto the bootstrapping step the app is working

    • @WebTechTalk
      @WebTechTalk  2 месяца назад

      @@RaghuRam-y8y Check in your app.config.ts file, the routes have been provided using provideRouter function.

  • @rishiraj2548
    @rishiraj2548 7 месяцев назад +1

    thanks

  • @vinodhkarri6024
    @vinodhkarri6024 5 месяцев назад +1

    hii bro actullay i updated my application from v15 to v17 and resolved the errors as well .now iam getting blank screen and iam using node version 20.10.can u help me on this?

    • @WebTechTalk
      @WebTechTalk  5 месяцев назад +1

      Hi bro. First you have to check for browser console logs.

  • @thankikaushik
    @thankikaushik 5 месяцев назад +1

    Could you please make one which use angular material ui and ngrx store ? 11 to 17/18 ?

    • @WebTechTalk
      @WebTechTalk  5 месяцев назад +1

      @@thankikaushik sure

    • @mrunaljagtap1622
      @mrunaljagtap1622 Месяц назад

      I have same requirement. My project is in angular 9

  • @chandraprakashkale1113
    @chandraprakashkale1113 10 месяцев назад

    Will you share the commands for upgrade flow and standalone. Also will you please share will there be many circumstances to upgrade till 17 because I have very big project. Any command that it will change automatically with the updated tags in my files.

    • @WebTechTalk
      @WebTechTalk  10 месяцев назад +1

      ng g @angular/core:control-flow - This is to change the old control flow to new syntax.
      ng g @angular/core:standalone - This is to convert your app to standalone. This will remove modules and make all components standalone.

  • @raghuram.kaligotla
    @raghuram.kaligotla 2 месяца назад

    In my project i have module defined for respective module in the application. In each module i have routes defined for the components inside it. In this case how can i remove the module and use the routes?. In a component when i write providerouter inside providers giving me error

    • @WebTechTalk
      @WebTechTalk  2 месяца назад +1

      Don't need to provide your routes in each component. You can have separate route files for each logical module and then you can provide in app config file. Please see this video, you will get an idea.
      ruclips.net/video/RQFp-3bJ6IQ/видео.html

  • @jeanmarcokassatechnology3542
    @jeanmarcokassatechnology3542 6 месяцев назад +1

    merci pour video
    pourrais tu faire une video angular 18 ssr stp

    • @WebTechTalk
      @WebTechTalk  6 месяцев назад

      Merci beaucoup. Bien sûr que je le ferai. Avez-vous eu la chance de voir ça.
      ruclips.net/video/7_SzJnZy_kg/видео.html
      C’est en utilisant Angular 17. Il n’y aura pas de grande différence entre 17 et 18.

  • @dilnacorreya5510
    @dilnacorreya5510 2 месяца назад

    Is it necessary to downgrade the node version to 14 to upgrade my angular application from 11 to 17. My current node version is 20

    • @WebTechTalk
      @WebTechTalk  2 месяца назад

      @@dilnacorreya5510 it's good to downgrade and upgrade it when it reaches the compatible version. Is your angular 11 code running in node 20?

  • @ajitdarnal876
    @ajitdarnal876 9 месяцев назад

    ng g @angular/core:standalone
    ? Choose the type of migration: Convert all components, directives and pipes to standalone
    ? Which path in your project should be migrated? .
    Maximum call stack size exceeded

    • @WebTechTalk
      @WebTechTalk  9 месяцев назад

      I have not faced this issue before, however when I google, I found that this error is because of some circular dependencies in your application between components, pipes, directives etc. They are suggesting to find that circular dependencies and resolve that. Otherwise, instead of using dot, using --path to specify a smaller folder to migrate. So that you can find in which folder you are facing that circular dependency. And then, you can manually migrate that particular folder.

  • @abdullahbhojani4772
    @abdullahbhojani4772 7 месяцев назад

    how come angular v17 is working on your nodejs version 14?

    • @WebTechTalk
      @WebTechTalk  7 месяцев назад +1

      I think you have skipped that part. I upgraded my node js version to 18 before upgrading local angular version from 15 to 16.

  • @Dineshkumar-sw8ux
    @Dineshkumar-sw8ux 5 месяцев назад

    I recently did migration from angular 12 up to 16 in that I am facing issue at angular 16
    Node/@angular/common/common.d.ts file error TS2314;

    • @WebTechTalk
      @WebTechTalk  5 месяцев назад

      @@Dineshkumar-sw8ux error seems to be more general. Make sure you have updated all your dependencies to the compatible version

    • @Dineshkumar-sw8ux
      @Dineshkumar-sw8ux 5 месяцев назад

      Yes I installed the compatible version only for 16 but I don't why the error is coming up , finally I give skiplibcheack true in config.json file then it started working I don't know if it's a better approach or not

    • @WebTechTalk
      @WebTechTalk  5 месяцев назад

      @@Dineshkumar-sw8ux If it is working after enabling skiplibcheck, the issue is definitely because of compatibility issue with the dependencies. skiplibcheck should be the last option to resolve this issue.

  • @omiiishirke8049
    @omiiishirke8049 9 месяцев назад

    I updated angular 14 to 17, on 17 mat library (style) related changes are broke how to fix this, if you know can you tell me ?

    • @WebTechTalk
      @WebTechTalk  9 месяцев назад

      I have not faced this before. Make sure you are using the compatible version of the mat library. Also check mat library documentation for any implementation changes.

    • @kartikeykamal4809
      @kartikeykamal4809 6 месяцев назад +1

      This is what happens when someone just make video with half information. MDC material based components are introduced in material 15. To fix those style material upgrade will automatically do that and somewhere if its lefts you need to manually change also if your style is still not fixing then you need to dive deep into by changing all the style manually to mdc based. Hope this helps

    • @omiiishirke8049
      @omiiishirke8049 6 месяцев назад

      @@kartikeykamal4809 yes, most of components automatically upgrade, and also I manually upgrade some components, Thank you for your reply🙏

  • @BYREDDYHARIPRASADREDDY
    @BYREDDYHARIPRASADREDDY 4 месяца назад

    Hi bro,
    Is there any steps to migrate from angular 7 to angular 18
    Could u make an video

    • @WebTechTalk
      @WebTechTalk  4 месяца назад

      The approach is similar bro. If you get a specific error let me know

    • @BYREDDYHARIPRASADREDDY
      @BYREDDYHARIPRASADREDDY 4 месяца назад

      @@WebTechTalk ok bro

  • @adithyachitturi3246
    @adithyachitturi3246 6 месяцев назад

    Hi sir,
    I have migrated to angular 17,with no compliation errors,but when I run the project,the project appears blank on localhost. What should I do. Is it necessary to make the project standalone and app.routing?

    • @WebTechTalk
      @WebTechTalk  6 месяцев назад

      Are you seeing any errors in the browser console?

    • @adithyachitturi3246
      @adithyachitturi3246 6 месяцев назад

      @@WebTechTalk hi , I have cleared the error in the console,but I encountered another problem,the header is displaying twice. Can u help me please.

    • @WebTechTalk
      @WebTechTalk  6 месяцев назад

      @@adithyachitturi3246 is it getting doubled in all the pages?

    • @adithyachitturi3246
      @adithyachitturi3246 5 месяцев назад

      @@WebTechTalk yes sir,for all the pages.

    • @WebTechTalk
      @WebTechTalk  5 месяцев назад

      @@adithyachitturi3246 If your header component selector is "app-header", then search in your workspace, in how many components you have referred. I am suspecting you should have placed the app-header in both app component and other components also.

  • @RavuruIndu
    @RavuruIndu 7 месяцев назад

    I updated from angular 15 to 16 , when i do ng s I'm getting lot of errors . Can't bind to 'formGroup' since it like ng model errors . can you tell me what to do for this

    • @WebTechTalk
      @WebTechTalk  7 месяцев назад

      Are you using standalone components now?

    • @RavuruIndu
      @RavuruIndu 7 месяцев назад

      @@WebTechTalk no I'm not using any standalone components, before converting my project into standalone I'm getting these errors

    • @RavuruIndu
      @RavuruIndu 7 месяцев назад

      @@WebTechTalk I think the 16th version is only supporting standalone

    • @WebTechTalk
      @WebTechTalk  7 месяцев назад

      @@RavuruIndu No even version 17 supports both standalone and non-standalone

    • @WebTechTalk
      @WebTechTalk  7 месяцев назад

      @@RavuruIndu may be some compatibility issues with the dependencies

  • @saylimore7298
    @saylimore7298 6 месяцев назад

    Getting error while migrate A16 -A17 error NG5002: Parser Error: Unexpected token 'let' while migrate contol flow in angular 17

    • @WebTechTalk
      @WebTechTalk  6 месяцев назад +1

      In the new control flow syntax, we should not use let inside for block. You can remove that to fix this. A more detailed video on the new control flow syntax is coming soon.

    • @saylimore7298
      @saylimore7298 6 месяцев назад

      Thank you so much... waiting for new video

  • @RileyYang-pu9oe
    @RileyYang-pu9oe 7 месяцев назад

    Hii sir, is there any way to migrate to 17 , without making my project standalone

    • @WebTechTalk
      @WebTechTalk  7 месяцев назад

      If your Angular 16 application is not standalone and if you migrate, it will migrate as a non-standalone application only. Even in this video you can see that.

    • @RileyYang-pu9oe
      @RileyYang-pu9oe 7 месяцев назад

      ​@@WebTechTalk but after migrating to angular 16 , after running my project I'm getting lot of ng module errors and there are no standalone components

    • @WebTechTalk
      @WebTechTalk  7 месяцев назад

      @@RileyYang-pu9oe May I know what kind of errors you are getting

  • @jayakumar2927
    @jayakumar2927 10 месяцев назад

    error shows like this : Package '@angular/core' is not a dependency.

    • @WebTechTalk
      @WebTechTalk  10 месяцев назад

      Use --force or --legacy-peer-deps along with your update or install or uninstall command

  • @bharathvlogger4951
    @bharathvlogger4951 5 месяцев назад

    This video does not talk about any components migration. Since there are a number of changes happened related to components in Angular 15, it will be be helpful

    • @WebTechTalk
      @WebTechTalk  5 месяцев назад

      @@bharathvlogger4951 Are you mentioning about the standalone component. I believe I have covered that too.

  • @saivarunts898
    @saivarunts898 2 месяца назад

    Could you please share the URL which your following or any one else ???

    • @WebTechTalk
      @WebTechTalk  2 месяца назад

      This one?
      angular.dev/update-guide

  • @jayakumar2927
    @jayakumar2927 10 месяцев назад

    Can you share Github url

    • @WebTechTalk
      @WebTechTalk  10 месяцев назад

      github.com/freelancer-surender/Angular-General/tree/main/final-project

  • @dmytrokapustiuk9531
    @dmytrokapustiuk9531 6 месяцев назад

    I have error with ng update Cannot find module 'node-gyp/bin/node-gyp.js'

    • @WebTechTalk
      @WebTechTalk  6 месяцев назад +1

      Try deleting your node modules folder, package lock dot json and then do npm install

  • @guillermoboh8479
    @guillermoboh8479 7 месяцев назад

    I got this error executing the first command: ng update @angular/core@12 @angular/cli@12
    -----
    Node.js version v14.21.3 detected.
    The Angular CLI requires a minimum Node.js version of v18.19.
    ----
    i have node v14.21.3 and angular cli 11.2.1
    Any suggestions?

    • @WebTechTalk
      @WebTechTalk  7 месяцев назад

      What is the angular version mentioned in your package.json?

    • @guillermoboh8479
      @guillermoboh8479 7 месяцев назад +1

      @@WebTechTalk The problem was my version of Nodejs, I installed the node version manager (nvm), installed the compatible version and configured it to use it from nvm, now I have the Angular 17 version updated!! thanks for the video!

    • @WebTechTalk
      @WebTechTalk  7 месяцев назад

      @@guillermoboh8479 Actually for angular 12, node 18 is not needed. That is why I asked for the version in package json. Anyways it is good to hear that you have resolved.

  • @therockstar4727
    @therockstar4727 7 месяцев назад

    Hi sir,
    i migrated to version 15 , but files in the node_modules aren't updated , It says ''can't find stylesheets to import'' . what should i do?

    • @WebTechTalk
      @WebTechTalk  7 месяцев назад

      Try deleting your node modules folder and package lock json and then do npm install.