Skip to content

FatalDiagnosticError when running signal-input-migration #66053

@aqeelat

Description

@aqeelat

Which @angular/* package(s) are the source of the bug?

compiler-cli

Is this a regression?

No

Description

I'm running the angular migrations on my nx monorepo. Some of them give the error below, and some of them work fine.

What works:

  • @angular/core:control-flow
  • @angular/core:standalone
  • @angular/core:inject
  • @angular/core:cleanup-unused-imports
  • @angular/core:self-closing-tag

What doesn't:

  • @angular/core:signal-input-migration
  • @angular/core:output-migration
  • @angular/core:signal-queries-migration

What I noticed is they the failures happen on primeng components that extent a base component and not declare their i0.ɵɵ stuff directly.

The migrations worked fine before moving to the nx monorepo and pnpm (not sure which one is the reason).

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

✔ Which directory do you want to migrate? · ./
✔ Do you want to migrate as much as possible, even if it may break your build? (y/N) · false
    Preparing analysis for: libs/lib-1/tsconfig.lib.json...
    Scanning for inputs: libs/lib-1/tsconfig.lib.json...
FatalDiagnosticError: FatalDiagnosticError: Code: 3004, Message: Unable to import symbol Tooltip.
  The symbol is not exported from /libs/lib-2/node_modules/primeng/tooltip/index.d.ts (module 'primeng/tooltip').
    at assertSuccessfulReferenceEmit (/path-to-repo/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@angular/core/schematics/bundles/checker-BwV9MjSQ.cjs:32446:11)
    at TypeCheckFile.referenceType (/path-to-repo/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@angular/core/schematics/bundles/checker-BwV9MjSQ.cjs:42029:9)
    at TcbDirectiveInputsOp.execute (/path-to-repo/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@angular/core/schematics/bundles/checker-BwV9MjSQ.cjs:44275:57)
    at Scope.executeOp (/path-to-repo/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@angular/core/schematics/bundles/checker-BwV9MjSQ.cjs:45440:24)
    at Scope.render (/path-to-repo/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@angular/core/schematics/bundles/checker-BwV9MjSQ.cjs:45331:18)
    at TcbTemplateBodyOp.execute (/path-to-repo/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@angular/core/schematics/bundles/checker-BwV9MjSQ.cjs:43937:38)
    at Scope.executeOp (/path-to-repo/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@angular/core/schematics/bundles/checker-BwV9MjSQ.cjs:45440:24)
    at Scope.render (/path-to-repo/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@angular/core/schematics/bundles/checker-BwV9MjSQ.cjs:45331:18)
    at generateTypeCheckBlock (/path-to-repo/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@angular/core/schematics/bundles/checker-BwV9MjSQ.cjs:43661:35)
    at TypeCheckFile.addTypeCheckBlock (/path-to-repo/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@angular/core/schematics/bundles/checker-BwV9MjSQ.cjs:46174:20) {
  code: 3004,
  node: <ref *1> SourceFileObject {
    pos: 0,
    end: 0,
    kind: 307,
    id: 0,
    flags: 0,
    modifierFlagsCache: 0,
    transformFlags: 0,
    parent: undefined,
    original: undefined,
    emitNode: undefined,
    statements: [ pos: 0, end: 0, hasTrailingComma: false, transformFlags: 0 ],
    endOfFileToken: TokenObject {
      pos: 0,
      end: 0,
      kind: 1,
      id: 0,
      flags: 0,
      transformFlags: 0,
      parent: [Circular *1],
      emitNode: undefined
    },
    text: '',
    fileName: '/libs/lib-3/image-uploader/src/image-uploader.component.ngtypecheck.ts',
    path: '',
    resolvedPath: '',
    originalFileName: '',
    languageVersion: 99,
    languageVariant: 0,
    scriptKind: 3,
    isDeclarationFile: false,
    hasNoDefaultLib: false,
    locals: undefined,
    nextContainer: undefined,
    endFlowNode: undefined,
    nodeCount: 2,
    identifierCount: 0,
    symbolCount: 0,
    parseDiagnostics: [],
    bindDiagnostics: [],
    bindSuggestionDiagnostics: undefined,
    lineMap: undefined,
    externalModuleIndicator: undefined,
    setExternalModuleIndicator: [Function: setExternalModuleIndicator],
    pragmas: Map(0) {},
    checkJsDirective: undefined,
    referencedFiles: [],
    typeReferenceDirectives: [],
    libReferenceDirectives: [],
    amdDependencies: [],
    commentDirectives: undefined,
    identifiers: Map(0) {},
    packageJsonLocations: undefined,
    packageJsonScope: undefined,
    imports: undefined,
    moduleAugmentations: undefined,
    ambientModuleNames: undefined,
    classifiableNames: undefined,
    impliedNodeFormat: undefined,
    jsDocParsingMode: 0,
    Symbol(AbsolutePath): '/libs/lib-3/image-uploader/src/image-uploader.component.ngtypecheck.ts'
  },
  diagnosticMessage: {
    category: 3,
    code: 0,
    messageText: 'Unable to import symbol Tooltip.',
    next: [ [Object] ]
  },
  relatedInformation: [
    {
      category: 3,
      code: 0,
      file: [SourceFileObject],
      start: 459,
      length: 7131,
      messageText: 'The symbol is declared here.'
    }
  ],
  _isFatalDiagnosticError: true
}

 NX   FatalDiagnosticError: Code: 3004, Message: Unable to import symbol Tooltip.

  The symbol is not exported from /libs/lib-2/node_modules/primeng/tooltip/index.d.ts (module 'primeng/tooltip').
Pass --verbose to see the stacktrace.

Please provide the environment you discovered this bug in (run ng version)

Angular CLI: 19.2.19
Node: 24.5.0 (Unsupported)
Package Manager: pnpm 10.25.0
OS: darwin arm64

Angular: 19.2.15
... animations, common, compiler, compiler-cli, core, forms
... language-service, platform-browser, platform-browser-dynamic
... router

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1902.19
@angular-devkit/build-angular   19.2.19
@angular-devkit/core            19.2.19
@angular-devkit/schematics      19.2.19
@angular/build                  19.2.19
@angular/cdk                    19.2.19
@angular/cdk-experimental       19.2.19
@angular/cli                    19.2.19
@schematics/angular             19.2.19
ng-packagr                      19.2.2
rxjs                            7.8.2
typescript                      5.8.3
zone.js                         0.15.1
    
Warning: The current version of Node (24.5.0) is not supported by Angular.

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: migrationsIssues related to `ng update`/`ng generate` migrationsneeds reproductionThis issue needs a reproduction in order for the team to investigate further

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions