-
Notifications
You must be signed in to change notification settings - Fork 26.5k
Open
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimestate: confirmed
Milestone
Description
Which @angular/* package(s) are the source of the bug?
platform-browser
Is this a regression?
No
Description
Bug is on this line.
ngDevMode ? 'EventManagerPlugins' : '', |
What's happening is an app is running in dev mode and being imported in a website that's been compiled for production leaving devMode out of the compilation. It's an MFE specifying the angular packages are shared dependencies.
I've created a similar bug in the past for ngrx. ngrx/platform#4699
You guys could implement the same fix. https://github.com/ngrx/platform/pull/4703/files
Replace ngDevMode ? 'EventManagerPlugins' : ''
with typeof ngDevMode !== 'undefined' && ngDevMode ? 'EventManagerPlugins': ''
If there are similar examples in this repository those should be addressed too to prevent anyone from running across this again.
Please provide a link to a minimal reproduction of the bug
No response
Please provide the exception or error you saw
Uncaught ReferenceError: application 'my-mfe-application' died in status LOADING_SOURCE_CODE: ngDevMode is not defined
Please provide the environment you discovered this bug in (run ng version
)
Angular CLI: 19.2.15
Node: 20.19.1
Package Manager: npm 10.8.2
OS: win32 x64
Angular: 19.2.14
... animations, common, compiler, compiler-cli, core, forms
... platform-browser, platform-browser-dynamic, router
Package Version
---------------------------------------------------------
@angular-devkit/architect 0.1902.15
@angular-devkit/build-angular 19.2.15
@angular-devkit/core 19.2.15
@angular-devkit/schematics 19.2.15
@angular/cli 19.2.15
@schematics/angular 19.2.15
rxjs 7.8.2
typescript 5.8.3
zone.js 0.15.1
Anything else?
No response
Metadata
Metadata
Assignees
Labels
area: coreIssues related to the framework runtimeIssues related to the framework runtimestate: confirmed