Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Comments

@bardhbryma
Copy link

bardhbryma commented Feb 3, 2025

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:

  1. After starting the project the error is showing on runtime in the browser

Expected behavior
To show the editor

@jerePixelgenau
Copy link

We have the same problem after updating to angular 19

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants