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
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#3889
Open
bardhbryma opened this issue
Feb 3, 2025
· 1 comment
Describe the bug
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.dev/errors/NG0203.
Object.BuilderModule_Factory [as useFactory] (builder.io-angular.mjs:1401:56)
static ɵfac = function BuilderModule_Factory(ngFactoryType) {
return new (ngFactoryType || BuilderModule)(i0.ɵɵinject(i0.Injector), i0.ɵɵinject(PLATFORM_ID));
};
The Angular latest version 19.1.3
The Builder version: "@builder.io/angular": "^5.0.1", "@angular/elements": "^19.1.4",
To Reproduce
Steps to reproduce the behavior:
After starting the project the error is showing on runtime in the browser
Expected behavior
To show the editor
The text was updated successfully, but these errors were encountered:
Describe the bug
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.dev/errors/NG0203.Object.BuilderModule_Factory [as useFactory] (builder.io-angular.mjs:1401:56)
static ɵfac = function BuilderModule_Factory(ngFactoryType) {
return new (ngFactoryType || BuilderModule)(i0.ɵɵinject(i0.Injector), i0.ɵɵinject(PLATFORM_ID));
};
The Angular latest version 19.1.3
The Builder version: "@builder.io/angular": "^5.0.1", "@angular/elements": "^19.1.4",
To Reproduce
Steps to reproduce the behavior:
Expected behavior
To show the editor
The text was updated successfully, but these errors were encountered: