{"record":{"id":"d81bd7ba6a8c3af5","repo":"angular/components","slug":"some-issues-were-detected-but-could-not-be-fi","errorCode":null,"errorMessage":"  ⚠  Some issues were detected but could not be fixed automatically. Please check the output above and fix these issues manually.","messagePattern":"  ⚠  Some issues were detected but could not be fixed automatically\\. Please check the output above and fix these issues manually\\.","errorType":"console","errorClass":null,"httpStatus":null,"severity":"warning","filePath":"src/cdk/schematics/ng-update/index.ts","lineNumber":37,"sourceCode":"    TargetVersion.V22,\n    cdkMigrations,\n    cdkUpgradeData,\n    onMigrationComplete,\n  );\n}\n\n/** Function that will be called when the migration completed. */\nfunction onMigrationComplete(\n  context: SchematicContext,\n  targetVersion: TargetVersion,\n  hasFailures: boolean,\n) {\n  context.logger.info('');\n  context.logger.info(`  ✓  Updated Angular CDK to ${targetVersion}`);\n  context.logger.info('');\n\n  if (hasFailures) {\n    context.logger.warn(\n      '  ⚠  Some issues were detected but could not be fixed automatically. Please check the ' +\n        'output above and fix these issues manually.',\n    );\n  }\n}\n","sourceCodeStart":19,"sourceCodeEnd":43,"githubUrl":"https://github.com/angular/components/blob/0411926e7d8ae06b32236ec1048a888cfad5abf2/src/cdk/schematics/ng-update/index.ts#L19-L43","documentation":"After a `ng update @angular/cdk` migration runs, `onMigrationComplete` reports whether any migration tasks failed. If failures were collected, it logs this warning telling you the migration could not fix everything automatically and that manual fixes are required. It is not an exception — the update itself succeeded, but the codebase still contains issues the migration tooling flagged.","triggerScenarios":"Running `ng update @angular/cdk @angular/material` where one or more migration tasks (e.g. import path, class inheritance, misc template migrations) recorded failures in their results passed to `hasFailures`.","commonSituations":"Non-standard code the AST migration cannot parse or safely rewrite (dynamic imports, unusual template expressions), projects with uncommitted merge states, or custom files excluded from tsconfig that migrations partially cover.","solutions":["Scroll up in the update output to find each logged failure (file path, line, and reason) and fix them manually as described.","Re-run `ng update @angular/cdk @angular/material --from=<oldVer> --to=<newVer> --migrate-only` after fixing to attempt any remaining migrations.","Check the Angular update guide for the version jump to see if manual steps are documented for the failing migration."],"exampleFix":"// before (output shows: src/app/foo.ts@12:5 - Could not migrate import)\nimport { Dialog } from '@angular/cdk/dialog'; // old symbol usage\n\n// after\n// manually apply the migration the tool could not perform,\n// following the failure message in the ng update output","handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":["Run `ng update` with a clean git working tree so failures can be reviewed and reverted safely.","Always read the full `ng update` output, not just the exit code.","Commit migration results separately from manual fixes."],"tags":["angular","schematics","migration","cli","ng-update"],"backgroundTag":"ng-update-migration-failures","analyzedSha":"0411926e7d8ae06b32236ec1048a888cfad5abf2","analyzedAt":"2026-08-31T11:58:23.400Z","schemaVersion":2},"datasetVersion":"2026-09-01T08:17:40.651Z"}