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.
core.mjs:6531 ERROR 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)
My package.json:
{
"name": "PartnerPortal",
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "ng serve --open",
"build": "ng build",
"build:prod": "ng build --configuration production",
"watch": "ng build --watch --configuration development",
"test": "ng test",
"lint": "ng lint"
},
"private": true,
"dependencies": {
"@abp/ng.components": "^8.2.2",
"@abp/ng.core": "^8.2.2",
"@abp/ng.oauth": "^8.2.2",
"@abp/ng.setting-management": "~8.2.2",
"@abp/ng.theme.shared": "~8.2.2",
"@angular/animations": "^17.3.9",
"@angular/cdk": "^17.3.9",
"@angular/common": "^17.3.9",
"@angular/compiler": "^17.3.9",
"@angular/core": "^17.3.9",
"@angular/forms": "^17.3.9",
"@angular/localize": "^17.3.9",
"@angular/platform-browser": "^17.3.9",
"@angular/platform-browser-dynamic": "^17.3.9",
"@angular/router": "^17.3.9",
"@fortawesome/fontawesome-free": "^5.15.3",
"@ng-bootstrap/ng-bootstrap": "^16.0.0",
"@ngx-translate/core": "^15.0.0",
"@ngx-translate/http-loader": "^6.0.0",
"@popperjs/core": "~2.11.8",
"@tinymce/tinymce-angular": "^8.0.1",
"@types/bootstrap": "^5.1.0",
"@types/object-path": "^0.11.1",
"@types/prismjs": "^1.16.6",
"@volo/abp.commercial.ng.ui": "~8.2.2",
"@volo/abp.ng.account": "~8.2.2",
"@volo/abp.ng.audit-logging": "~8.2.2",
"@volo/abp.ng.file-management": "~8.2.2",
"@volo/abp.ng.identity": "~8.2.2",
"@volo/abp.ng.identity-server": "~8.2.2",
"@volo/abp.ng.language-management": "~8.2.2",
"@volo/abp.ng.saas": "~8.2.2",
"@volo/abp.ng.text-template-management": "~8.2.2",
"@volo/abp.ng.theme.lepton": "~8.2.2",
"angular-in-memory-web-api": "^0.17.0",
"angular-svg-icon": "^17.0.0",
"animate.css": "^4.1.1",
"apexcharts": "^3.27.2",
"bootstrap": "^5.0.2",
"bootstrap-icons": "^1.5.0",
"clipboard": "^2.0.8",
"dompurify": "^2.3.10",
"flag-icons": "^7.2.3",
"jquery": "^3.6.0",
"line-awesome": "^1.3.0",
"ng-apexcharts": "1.8.0",
"ngx-quill": "^16.1.2",
"nouislider": "^15.2.0",
"object-path": "^0.11.5",
"prism-themes": "^1.8.0",
"prismjs": "^1.25.0",
"quill": "^1.3.7",
"rxjs": "^7.8.1",
"socicon": "^3.0.5",
"tslib": "^2.7.0",
"typescript": "5.3.3",
"zone.js": "~0.14.10"
},
"devDependencies": {
"@abp/ng.schematics": "~8.2.2",
"@angular-devkit/build-angular": "^17.3.9",
"@angular/compiler-cli": "^17.3.9",
"@angular/language-service": "^17.3.9",
"@types/jasmine": "~3.6.0",
"@types/node": "^12.11.1",
"eslint": "^7.32.0",
"jasmine-core": "~3.7.0",
"ng-packagr": "^17.3.0"
}
}
This after migrating from ABP 5
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.
Is it possible I am missing appsettings?