You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
hub: importing /devframe in an Angular 20 server bundle fails on createRequire #427
The Express hub path on Angular 20.x is fixed: the hub is now loaded from the package at runtime. But custom hosts that import @pangular-inspector/devtools/devframe into an Angular 20 server bundle still fail during route extraction:
Identifier 'createRequire' has already been declared
Angular 20 adds a top-level import { createRequire } from 'node:module' banner. devframe's own files declare the same name. Angular 21 and 22 are fine, because they alias the banner import.
Possible fixes (upstream)
devframe emits import { createRequire as … } with an alias, or uses process.getBuiltinModule.
Angular backports its __ngCreateRequire alias to 20.x.
Until then, the custom host docs could note that on Angular 20 the devframe import has to be loaded at runtime (await import(...)) rather than bundled.
Activity