Is it possible I am doing something wrong when importing to my modules?
shared.module.ts:
import { CoreModule } from '@abp/ng.core';
import { ThemeSharedModule } from '@abp/ng.theme.shared';
import { NgModule } from '@angular/core';
import { NgbDropdownModule } from '@ng-bootstrap/ng-bootstrap';
import { NgxValidateCoreModule } from '@ngx-validate/core';
import { CommercialUiModule } from '@volo/abp.commercial.ng.ui';
import { ThemeLeptonModule } from '@volo/abp.ng.theme.lepton';
import { SharedUtilsService } from './shared.utils';
@NgModule({
declarations: [
],
imports: [
CoreModule,
ThemeSharedModule,
ThemeLeptonModule,
CommercialUiModule,
NgbDropdownModule,
NgxValidateCoreModule
],
exports: [
CoreModule,
ThemeSharedModule,
ThemeLeptonModule,
CommercialUiModule,
NgbDropdownModule,
NgxValidateCoreModule,
],
providers: [SharedUtilsService]
})
export class SharedModule { }
app.module.ts
...
import { ThemeLeptonModule } from '@volo/abp.ng.theme.lepton';
...
@NgModule({
declarations: [
AppComponent,
ApproveUserActionComponent,
],
imports: [
...
ThemeLeptonModule.forRoot({
customStyle: true
}),
...
],
providers: [
ApproveUserActionComponent],
bootstrap: [AppComponent],
})
export class AppModule { }
NullInjectorError: NullInjectorError: No provider for InjectionToken OPEN_AUTHORITY_DELEGATION_MODAL!
at NullInjector.get (core.mjs:1654:27)
at R3Injector.get (core.mjs:3093:33)
at R3Injector.get (core.mjs:3093:33)
at injectInjectorOnly (core.mjs:1100:40)
at ɵɵinject (core.mjs:1106:60)
at inject (core.mjs:1192:12)
at Object.configureUserMenu [as useFactory] (volo-abp.ng.theme.lepton.mjs:1203:48)
at Object.factory (core.mjs:3322:38)
at core.mjs:3219:47
at runInInjectorProfilerContext (core.mjs:866:9)
I changed all ~ signs to ^ signs in the package.json file. I changed the @volo/abp.ng.theme.lepton package version back to 8.2.2.
After deleting node_modules folder and yarn.lock file, then ran yarn, and yarn start, I'm back to the original error with the OPEN_AUTHORITY_DELEGATION_MODAL InjectionToken
I upgraded this package to "@volo/abp.ng.theme.lepton": "~8.3.0-rc.3"
And now the same error occurs, but on the SORT_COMPARE_FUNC InjectionToken.
https://github.com/abpframework/abp/issues/18274
This seems to be a similar issue, but from 2023, from a package version way before 8.2.x
https://abp.io/package-detail/@volo_abp.ng.theme.lepton
Where can I find the issue list? Maybe this is a known issue, even though I can't find anything online.
The error seems to occur in volo-abp.ng.theme.lepton.mjs, so I'm guessing it has something to do with that package. I did several migrations one after the other. Is it possible This is a remnant? I have however deleted my node_modules folder several times since I've had this error. So the version (8.2.3) should be ok. Is this no longer a valid package?
In my package.json all versions seem to be correct (see package.json in the original post)
Still the same error.
I've found out there is a MyServiceConvention : AbpServiceConvention class
In this class, there is an override for "ApplyForControllers" where the AbpApiDefinitionController was removed.
I don't know for what reason that would be. But commenting out that code, i get the definition.