Skip to content

Latest commit

 

History

History
60 lines (49 loc) · 5.03 KB

File metadata and controls

60 lines (49 loc) · 5.03 KB

Challenges Encountered

Version Migration

  1. Context: Upgrading to Angular 15
    Error: ./src/polyfills.ts - Error: Module build failed (from ./node_modules/@ngtools/webpack/src/ivy/index.js): Error: Transform failed with 1 error: path/to/component.module.css:17:100: ERROR: Unterminated string token

  2. Context: Upgrading to Angular 18
    Error: X [ERROR] TS2304: Cannot find name 'HttpClientModule'. [plugin angular-compiler]

  3. Context: Upgrading to Angular 17
    Error: ./src/polyfills.ts:53:0-27 - Error: Module not found: Error: Package path ./dist/zone is not exported from package ~\...\project\node_modules\zone.js
    (see exports field in ~\...\project\node_modules\zone.js\package.json)

  4. Context: Upgrading to Angular 19 #sass
    Error: The plugin "angular-sass" was triggered by this import
    angular:styles/global:styles:2:8:
    2 │ @import 'src/styles.scss';

    ▲ [WARNING] Deprecation [plugin angular-sass]
    src/styles.scss:6:8:
    6 │ @import "node_modules/bootstrap/scss/reboot";
      ╵                ^
    Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.

  5. Context: Upgrading to Angular 17
    Error: angular.json → Property buildTarget is not allowed

    • Solution: Re-open VS Code...
  6. Context: Upgrade to Angular 18 #sass
    Error: X [ERROR] Could not resolve "~src/assets/images/iceland/bruarfoss-waterfall.jpg" [plugin angular-css-resource]

    src/app/features/udemy/courses/advanced-css-and-sass/Natours/natours-apex/natours-header/natours-header.component.scss:75:106:
    75 │ ...0.75)), url("~src/assets/images/iceland/bruarfoss-waterfall.jpg");

    You can remove the tilde and use a relative path to reference it, which should remove this error.
    Preprocessor stylesheets may not show the exact file location of the error.

  7. Context: SITUATION
    Error: ERROR_MESSAGE

  8. Context: SITUATION
    Error: ERROR_MESSAGE

  9. Context: SITUATION
    Error: ERROR_MESSAGE

  10. Context: SITUATION
    Error: ERROR_MESSAGE

  11. Context: SITUATION
    Error: ERROR_MESSAGE

To Investigate

  • Application projects that are using the '@angular-devkit/build-angular' package's 'browser' and/or 'browser-esbuild' builders will be migrated to use the new 'application' builder - https://angular.dev/tools/cli/build-system-migration
    • The output location of the browser build has been updated from "dist/angular-jungle-gym" to "dist/angular-jungle-gym/browser". You might need to adjust your deployment pipeline or, as an alternative, set outputPath.browser to "" in order to maintain the previous functionality.