Open Closed

Upgrade 7.3.2 to 7.4.0-rc.4 error #5874


User avatar
0
linhhn@arius.vn created

After updating version from 7.3.2 to 7.4.0-rc.4, the following error occurs. I deleted node_modules and yarn.lock and ran yarn but there was still an error so I think it's not due to the cache

NullInjectorError: R3InjectorError(AppModule)[ApplicationInitStatus -> InjectionToken Application Initializer -> [object Object] -> ProfilePictureService -> RestService -> InjectionToken CORE_OPTIONS -> InjectionToken CORE_OPTIONS]: 
  NullInjectorError: No provider for InjectionToken CORE_OPTIONS!
    at NullInjector.get (core.mjs:8755:27)
    at R3Injector.get (core.mjs:9184:33)
    at R3Injector.get (core.mjs:9184:33)
    at injectInjectorOnly (core.mjs:651:33)
    at Module.ɵɵinject (core.mjs:655:60)
    at Object._class7_Factory [as factory] (abp-ng.core.mjs:60:84)
    at R3Injector.hydrate (core.mjs:9285:35)
    at R3Injector.get (core.mjs:9173:33)
    at injectInjectorOnly (core.mjs:651:33)
    at Module.ɵɵinject (core.mjs:655:60)
  • ABP Framework version: v7.4.0-rc.4
  • UI Type: Angular
  • Database System: EF Core MySQL
  • Tiered (for MVC) or Auth Server Separated (for Angular): yes
  • Exception message and full stack trace:
  • Steps to reproduce the issue:

3 Answer(s)
  • User Avatar
    0
    Anjali_Musmade created
    Support Team Support Team Member

    Hello linhhn@arius.vn,

    Could you please try following steps

    Open CMD anywhere

    Run command: yarn cache clear

    Go to angular folder

    Remove .angular | node_modules | yarn.lock files the existing folders

    Run command: yarn install or npm install

    Run command: yarn start or npm start

    Also have look to this similar issue https://support.abp.io/QA/Questions/702/NullInjectorError-in-console-Angular-app-couldn%27t-load

    Please do let me know if find helpful

    Thank you, Anjali

  • User Avatar
    0
    masum.ulu created
    Support Team Angular Expert

    Hello linhhn@arius.vn

    Can you please send your package.json file, probably your @abp/* or @volo/* package's version is not correct or if you use lepton-x it must be 2.4.0-rc.4 if CLI didn't update please set this version for lepton-x theme

  • User Avatar
    0
    linhhn@arius.vn created

    Thanks. The reason is that the lepton-x version has not been updated in package.json

Made with ❤️ on ABP v9.1.0-preview. Updated on December 05, 2024, 12:19