If workspace includes Module Federation projects, ensure the new @nx/module-federation package is installed.
@nx/angular:migrations | Nx
Migration References
Here is a list of all migrations available for this package.
Remove Angular ESLint rules that were removed in v19.0.0.
remove-tailwind-config-from-ng-packagr-executors
Remove the deprecated 'tailwindConfig' option from ng-packagr executors. Tailwind CSS configurations located at the project or workspace root will be picked up automatically.
disable-angular-eslint-prefer-standalone
Disable the Angular ESLint prefer-standalone rule if not set.
update-angular-cli-version-19-0-0
Update the @angular/cli package version to ~19.0.0.
add-localize-polyfill-to-targets
Add the '@angular/localize/init' polyfill to the 'polyfills' option of targets using esbuild-based executors.
update-angular-ssr-imports-to-use-node-entry-point
Update '@angular/ssr' import paths to use the new '/node' entry point when 'CommonEngine' is detected.
update-20-2-0-update-module-federation-config-import
Update the ModuleFederationConfig import use @nx/module-federation.
update-20-2-0-update-with-module-federation-import
Update the withModuleFederation import use @nx/module-federation/angular.
update-19-6-1-ensure-module-federation-target-defaults
Ensure Target Defaults are set correctly for Module Federation.
update-angular-cli-version-18-2-0
Update the @angular/cli package version to ~18.2.0.
Ensure Module Federation DTS is turned off by default.
update-angular-cli-version-18-1-0
Update the @angular/cli package version to ~18.1.0.
Installs the '@typescript-eslint/utils' package when having installed '@angular-eslint/eslint-plugin' or '@angular-eslint/eslint-plugin-template' with version >=18.0.0.
update-angular-cli-version-18-0-0
Update the @angular/cli package version to ~18.0.0.
update-angular-cli-version-17-3-0
Update the @angular/cli package version to ~17.3.0.
fix-target-defaults-for-webpack-browser
Ensure targetDefaults inputs for task hashing when '@nx/angular:webpack-browser' is used are correct for Module Federation.
update-angular-cli-version-17-2-0
Update the @angular/cli package version to ~17.2.0.
add-module-federation-env-var-to-target-defaults
Add NX_MF_DEV_SERVER_STATIC_REMOTES to inputs for task hashing when '@nx/angular:webpack-browser' is used for Module Federation.
update-angular-cli-version-17-1-0
Update the @angular/cli package version to ~17.1.0.
Add 'browser-sync' as dev dependency when '@angular-devkit/build-angular:ssr-dev-server' or '@nx/angular:module-federation-dev-ssr' is used.
Add 'autoprefixer' as dev dependency when '@nx/angular:ng-packagr-lite' or '@nx/angular:package` is used.
rename-webpack-dev-server-executor
Rename '@nx/angular:webpack-dev-server' executor to '@nx/angular:dev-server'
update-angular-cli-version-17-0-0
Update the @angular/cli package version to ~17.0.0.
rename-browser-target-to-build-target
Rename 'browserTarget' to 'buildTarget'.
Replace usages of '@nguniversal/builders' with '@angular-devkit/build-angular'.
Replace usages of '@nguniversal/' packages with '@angular/ssr'.
Replace the deep imports from 'zone.js/dist/zone' and 'zone.js/dist/zone-testing' with 'zone.js' and 'zone.js/testing'.
update-angular-cli-version-16-2-0
Update the @angular/cli package version to ~16.2.0.
explicitly-set-projects-to-update-buildable-deps
Explicitly set 'updateBuildableProjectDepsInPackageJson' to 'true' in targets that rely on that value as the default.
update-angular-cli-version-16-1-0
Update the @angular/cli package version to ~16.1.0.
rename-angular-eslint-accesibility-rules
Remove the 'accessibility-' prefix from '@angular-eslint/eslint-plugin-template' rules.
switch-data-persistence-operators-imports-to-ngrx-router-store
Switch the data persistence operator imports to '@ngrx/router-store/data-persistence'.
remove-render-module-platform-server-exports
Remove exported
@angular/platform-server
renderModule
method. TherenderModule
method is now exported by the Angular CLI.Remove 'ngcc' invocation if exists from the 'postinstall' script in package.json.
extract-app-config-for-standalone
Extract the app config for standalone apps
Update server executors' configuration to disable 'buildOptimizer' for non optimized builds.
update-angular-cli-version-16-0-0
Update the @angular/cli package version to ~16.0.0.
remove-protractor-defaults-from-generators
Remove protractor as default e2eTestRunner from nxJson and project configurations
remove-karma-defaults-from-generators
Remove karma as default unitTestRunner from nxJson and project configurations
remove-library-generator-simple-module-name-option
Replace the deprecated library generator 'simpleModuleName' option from generator defaults with 'simpleName'
Replace @nrwl/angular with @nx/angular