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
chunk-UPPURN5U.js?v=362350fb:3784 ERROR Error: NG0203: inject() must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with `runInInjectionContext`. Find more at https://angular.io/errors/NG0203
at injectInjectorOnly (core.mjs:1093:15)
at ɵɵinject (core.mjs:1106:42)
at Object.factory (core.mjs:27702:46)
at chunk-UPPURN5U.js?v=362350fb:1898:35
at runInInjectorProfilerContext (chunk-UPPURN5U.js?v=362350fb:523:5)
at R3Injector.hydrate (chunk-UPPURN5U.js?v=362350fb:1897:11)
at R3Injector.get (chunk-UPPURN5U.js?v=362350fb:1790:23)
at definition.getStandaloneInjector (core.mjs:27718:31)
at ComponentFactory.create (chunk-UPPURN5U.js?v=362350fb:9279:53)
at _ApplicationRef.bootstrap (chunk-UPPURN5U.js?v=362350fb:17671:38)
Please provide a link to a minimal reproduction of the bug
ERROR TypeError: Cannot read properties of null (reading 'bindingStartIndex')
at ɵɵelementStart (library.js?v=a9d1830e:14736:53)
at MainComponent_Template (library.js?v=a9d1830e:21091:7)
at executeTemplate (chunk-OYRBPOPR.js?v=5456b3f1:9302:5)
at renderView (chunk-OYRBPOPR.js?v=5456b3f1:10088:7)
at renderComponent (chunk-OYRBPOPR.js?v=5456b3f1:10070:3)
at renderChildComponents (chunk-OYRBPOPR.js?v=5456b3f1:10117:5)
at renderView (chunk-OYRBPOPR.js?v=5456b3f1:10102:7)
at renderComponent (chunk-OYRBPOPR.js?v=5456b3f1:10070:3)
at renderChildComponents (chunk-OYRBPOPR.js?v=5456b3f1:10117:5)
at renderView (chunk-OYRBPOPR.js?v=5456b3f1:10102:7)
Please provide the environment you discovered this bug in (run ng version)
This type of error is often seen when multiple versions of @angular/core are present within a bundle, which sounds plausible given the setup described. Likely both your application and library are pulling their own instance of @angular/core.
Which @angular/* package(s) are the source of the bug?
compiler, core
Is this a regression?
Yes
Description
The error occurs when the library and webapp are in separate workspaces. Adding the following to the webapp/tsconfig.json:
As mentioned in #35586 leads to:
Please provide a link to a minimal reproduction of the bug
https://stackblitz.com/edit/lib-err
Please provide the exception or error you saw
Please provide the environment you discovered this bug in (run
ng version
)Anything else?
No response
The text was updated successfully, but these errors were encountered: