Ionic 7 how use AppVersion

I imported appVersion dependencies but at runtive I receive:

ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(Standalone[AppComponent])[MgdContextService -> MgdContextService -> AppVersion -> AppVersion]: 
  NullInjectorError: No provider for AppVersion!

MgdContextService is a my custom service that use AppVersion

I can’t import it into app.module.ts because in ionic7 is not present

Please support me,

Thanks

L

Hi @lsantaniello ,

I have the same error. Could you solve the problem?

thank you

I already saw the problem.
I was not importing it correctly. Putting this, it has worked for me:

import { AppVersion } from ‘@awesome-cordova-plugins/app-version/ngx’;

Greetings