Skip to content

NG0908 in bootstrapModuleFactory #54659

@sharsmita

Description

@sharsmita

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

core

Is this a regression?

Yes

Description

I'm getting an error in polyfill.js which has started suddenly on a running app. Need help urgently

Please provide a link to a minimal reproduction of the bug

Please provide the exception or error you saw

Illegal constructor
    at HTMLUnknownElement.<anonymous> (polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL:6:10847)
    at classList.js:196:14
    at 661 (classList.js:191:2)
    at a (bootstrap:19:1)
    at 5321 (polyfills.js:1:213)
    at a (bootstrap:19:1)
    at y (web-animations.min.js:15:47132)
    at web-animations.min.js:15:47132
    at n (jsonp chunk loading:34:1)
    at polyfills.js:1:63
(anonymous) @ polyfill.min.js?features=requestAnimationFrame,Element.prototype.classList,URL:6
(anonymous) @ classList.js:196
661 @ classList.js:191
a @ bootstrap:19
5321 @ polyfills.js:1
a @ bootstrap:19
y @ web-animations.min.js:15
(anonymous) @ web-animations.min.js:15
n @ jsonp chunk loading:34
(anonymous) @ polyfills.js:1
Show 7 more frames
Show less
Error: NG0908
    at new Zn (core.mjs:26110:19)
    at Sse (core.mjs:27203:16)
    at Pu.bootstrapModuleFactory (core.mjs:27066:24)
    at core.mjs:27127:41

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

@angular/animations": "16.1.5",
    "@angular/cdk": "^16.1.5",
    "@angular/common": "16.1.5",
    "@angular/compiler": "16.1.5",
    "@angular/compiler-cli": "16.1.5",
    "@angular/core": "16.1.5",
    "@angular/forms": "16.1.5",

node 18.17.1

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions