Open Closed

NullInjectorError: No provider for InjectionToken SORT_COMPARE_FUNC! #9260


User avatar
0
mateusz.krauze created

ABP Framework version: 9.0 - 9.1.1 UI Type: Angular Database System: EF Core (SQL Server) Auth Server Separated (for Angular): Yes

Exception message and full stack trace : NullInjectorError: NullInjectorError: No provider for InjectionToken SORT_COMPARE_FUNC!

ERROR NullInjectorError: NullInjectorError: No provider for InjectionToken SORT_COMPARE_FUNC!
    Angular 38
core.mjs:6537:18
        get
        get
        get
        injectInjectorOnly
        inject
        inject
        AbstractMenuService
        _UserMenuService
        getInheritedFactory
        UserMenuService_Factory
        hydrate
        runInInjectorProfilerContext
        hydrate
        get
        injectInjectorOnly
        inject
        inject
        configureUserMenu
        LEPTON_X_USER_MENU_PROVIDERS
        runInInjectionContext
        runInitializers
        bootstrap
        _callAndReportToErrorHandler
        bootstrap
        invoke
        onInvoke
        invoke
        run
        run
        bootstrap
        bootstrapModuleFactory
        bootstrapModule
        invoke
        run
        scheduleResolveOrReject
        invokeTask
        runTask
        drainMicroTaskQueue

Hello, I updated ABP version from 9.0 to 9.1 (as a solution for other issues) and i've got error above at runtime. Compilation goes fine, but frontend not working. Tried refreshing node_modules, cache etc. but nothing helps. I guess some package has inccorrect version, please take a look. Here is my package list:

 "dependencies": {
    "@abp/ng.account": "9.1.1",
    "@abp/ng.components": "9.1.1",
    "@abp/ng.core": "9.1.1",
    "@abp/ng.identity": "9.1.1",
    "@abp/ng.oauth": "9.1.1",
    "@abp/ng.setting-management": "9.1.1",
    "@angular/animations": "19.2.9",
    "@angular/cdk": "19.2.3",
    "@angular/common": "19.2.9",
    "@angular/compiler": "19.2.9",
    "@angular/core": "19.2.9",
    "@angular/forms": "19.2.9",
    "@angular/localize": "19.2.9",
    "@angular/platform-browser": "19.2.9",
    "@angular/platform-browser-dynamic": "19.2.9",
    "@angular/router": "19.2.9",
    "@fullcalendar/angular": "6.1.17",
    "@fullcalendar/core": "6.1.17",
    "@fullcalendar/daygrid": "6.1.17",
    "@fullcalendar/interaction": "6.1.17",
    "@fullcalendar/timegrid": "6.1.17",
    "@microsoft/signalr": "8.0.7",
    "@ng-bootstrap/ng-bootstrap": "18.0.0",
    "@popperjs/core": "^2.11.8",
    "@primeng/themes": "^19.1.0",
    "@typescript-eslint/utils": "8.31.0",
    "@volo/abp.commercial.ng.ui": "9.1.1",
    "@volo/abp.ng.account": "9.1.1",
    "@volo/abp.ng.audit-logging": "9.1.1",
    "@volo/abp.ng.gdpr": "9.1.1",
    "@volo/abp.ng.identity": "9.1.1",
    "@volo/abp.ng.language-management": "9.1.1",
    "@volo/abp.ng.lepton-x.core": "4.1.1",
    "@volo/abp.ng.openiddictpro": "9.1.1",
    "@volo/abp.ng.saas": "9.1.1",
    "@volo/abp.ng.text-template-management": "9.1.1",
    "@volosoft/abp.ng.theme.lepton-x": "4.1.2",
    "@volosoft/ngx-lepton-x": "4.1.2",
    "file-saver": "^2.0.5",
    "jquery": "^3.7.1",
    "jquery-ui-dist": "^1.13.2",
    "jspdf": "3.0.1",
    "jspdf-autotable": "5.0.2",
    "moment": "^2.29.4",
    "ngx-logger": "^5.0.11",
    "primeicons": "^7.0.0",
    "primeng": "19.1.0",
    "rxjs": "~7.8.0",
    "source-map": "0.7.4",
    "tslib": "^2.0.0",
    "xlsx": "^0.18.5",
    "zone.js": "0.15.0"
  },
  "devDependencies": {
    "@abp/ng.schematics": "9.1.1",
    "@angular-devkit/build-angular": "19",
    "@angular-eslint/builder": "19",
    "@angular-eslint/eslint-plugin": "19",
    "@angular-eslint/eslint-plugin-template": "19",
    "@angular-eslint/schematics": "19",
    "@angular-eslint/template-parser": "19",
    "@angular/cli": "19",
    "@angular/compiler-cli": "19",
    "@angular/language-service": "19",
    "@types/jasmine": "5.1.7",
    "@types/node": "22.14.1",
    "@typescript-eslint/eslint-plugin": "8.31.0",
    "@typescript-eslint/parser": "8.31.0",
    "eslint": "9.25.1",
    "jasmine-core": "5.6.0",
    "karma": "6.4.4",
    "karma-chrome-launcher": "3.2.0",
    "karma-coverage": "2.2.1",
    "karma-jasmine": "5.1.0",
    "karma-jasmine-html-reporter": "2.1.0",
    "ng-packagr": "19.2.2",
    "typescript": "5.8.3"
  }

Thanks in advance


2 Answer(s)
  • User Avatar
    0
    EngincanV created
    Support Team .NET Developer

    Hi, did you check this thread, it seems it's same with your question?

  • User Avatar
    0
    mateusz.krauze created

    I read this thread before but I wasn't paying enough attention I guess. Adding ~ in package.json works. Thanks a lot! :)

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
Do you need assistance from an ABP expert?
Schedule a Meeting
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v9.3.0-preview. Updated on May 12, 2025, 05:22