The #14181 migration also needs to add "experimentalImportFactories": true to angular.json (#13948) to make the import syntax supported in VE.
The tsconfig file should also be updated to use "module": "esnext", and a e2e test should be added to test the update works and an app with lazy routes will be updated and runs properly.