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)
-
0
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 foldersRun command:
yarn install
ornpm install
Run command:
yarn start
ornpm 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
-
0
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 -
0
Thanks. The reason is that the lepton-x version has not been updated in package.json