I'm trying to cover all possibilities here.
Am I missing something or is there something off in my tsconfig.json file?
{
"compileOnSave": false,
"compilerOptions": {
"baseUrl": "./",
"outDir": "./dist/out-tsc",
"sourceMap": true,
"declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true,
"moduleResolution": "node",
"importHelpers": true,
"target": "ES2022",
"module": "ESNext",
"lib": [
"es2018",
"dom"
],
"paths": {
"@proxy": [
"src/app/proxy/index.ts"
],
"@proxy/*": [
"src/app/proxy/*"
],
"@volo/abp.ng.account": [
"projects/account/src/public-api.ts"
],
"@volo/abp.ng.account/admin": [
"projects/account/admin/src/public-api.ts"
],
"@volo/abp.ng.account/config": [
"projects/account/config/src/public-api.ts"
],
"@volo/abp.ng.account/public": [
"projects/account/public/src/public-api.ts"
],
"@volo/abp.ng.account/admin/config": [
"projects/account/admin/config/src/public-api.ts"
],
"@volo/abp.ng.account/public/config": [
"projects/account/public/config/src/public-api.ts"
],
"@volo/abp.ng.account/public/proxy": [
"projects/account/public/proxy/src/public-api.ts"
],
"@volo/abp.ng.identity": [
"projects/identity/src/public-api.ts"
],
"@volo/abp.ng.identity/config": [
"projects/identity/config/src/public-api.ts"
],
"@volo/abp.ng.identity/proxy": [
"projects/identity/proxy/src/public-api.ts"
],
"@volo/abp.ng.saas": [
"projects/saas/src/public-api.ts"
],
"@volo/abp.ng.saas/config": [
"projects/saas/config/src/public-api.ts"
],
"@volo/abp.ng.saas/proxy": [
"projects/saas/proxy/src/public-api.ts"
]
},
"useDefineForClassFields": false
},
"angularCompilerOptions": {
"enableI18nLegacyMessageIdFormat": false
}
}
Should I be using this package instead? "@volosoft/abp.ng.theme.lepton-x": "~2.4.0-rc.4",
This would require a lot of changes to a lot of different files across my solution.
Should I be using this package instead? "@volosoft/abp.ng.theme.lepton-x": "~2.4.0-rc.4",
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?