Skip to content

Ngcc: (main as umd) Cannot read property '1' of undefined #43936

@sandeeppatidar30

Description

@sandeeppatidar30

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

compiler-cli

Is this a regression?

Yes

Description

ngcc script is failing with an issue described in below exception section.
It is failing while using @angular/compiler v12.2.11.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw

Compiling @angular/cdk/drag-drop : main as umd
Error: Error on worker #3: TypeError: Cannot read property '1' of undefined
    at renderFactoryParameters (/workspace/node_modules/@angular/compiler-cli/ngcc/src/rendering/umd_rendering_formatter.js:201:51)
    at UmdRenderingFormatter.addImports (/workspace/node_modules/@angular/compiler-cli/ngcc/src/rendering/umd_rendering_formatter.js:63:13)
    at Renderer.renderFile (/workspace/node_modules/@angular/compiler-cli/ngcc/src/rendering/renderer.js:94:35)
    at /workspace/node_modules/@angular/compiler-cli/ngcc/src/rendering/renderer.js:53:108

Please provide the environment you discovered this bug in

Angular CLI - 12.2.11
Node: 12.18.2
OS: Windows 10 x64

Angular: 12.2.11

Anything else?

I think it is related to 1c6e905

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2The issue is important to a large percentage of users, with a workaroundstate: has PR

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions