0
sumeyye.kurtulus created
Support Team
Angular Expert
I am getting such error after updating my version to 10.0.x.
// root_effect_scheduler.mjs:3637
❌ ERROR ɵNotFound: NG0201: No provider found for `InjectionToken CORE_OPTIONS`. Find more at https://v20.angular.dev/errors/NG0201
2 Answer(s)
-
0
If you encounter an error similar to the following:
// root_effect_scheduler.mjs:3637 ❌ ERROR ɵNotFound: NG0201: No provider found for `InjectionToken CORE_OPTIONS`. Find more at https://v20.angular.dev/errors/NG0201as also mentioned here, you can resolve the issue by adding the following resolutions to your package.json:
"resolutions": { "@ng-bootstrap/ng-bootstrap": "~19.0.0", "@volo/abp.commercial.ng.ui": "~10.0.3", "@volo/abp.ng.account": "~10.0.3" }https://gist.github.com/sumeyyeKurtulus/6111671cf4f1773c1b8c1f354631087a
-
0
- This error happens when the Angular app can’t resolve ABP’s
CORE_OPTIONSprovider (it’s normally provided byCoreModule.forRoot(...)). After upgrading, it is commonly caused by TypeScriptpathsmappings that override how@abp/*and@volo/*packages are resolved (especially in microservice solutions / Studio-generated workspaces). - Apply the following workaround in your Angular app’s
tsconfig.json(the one used by the app, e.g.apps/angular/tsconfig.json):
{ "compilerOptions": { "paths": { "@abp/*": ["node_modules/@abp/*"], "@volo/*": ["node_modules/@volo/*"] } } }- Then reinstall and rebuild:
rm -rf node_modules package-lock.json yarn.lock npm install # or yarn npm start- Also ensure your root module still imports ABP core with
forRoot(otherwiseCORE_OPTIONSreally won’t be registered):
import { CoreModule } from '@abp/ng.core'; @NgModule({ imports: [ CoreModule.forRoot(/* your options */), ], }) export class AppModule {}Links:
- https://abp.io/support/questions/9414
- https://abp.io/docs/10.0/release-info/migration-guides/abp-10-0
This response was generated by AI. If it didn’t solve your problem, feel free to post a new answer — our support team will jump in to help you soon.
- This error happens when the Angular app can’t resolve ABP’s