sampart / cordova-plugin-app-version

Cordova plugin to return the version number of the current app [not maintained]
MIT License
401 stars 198 forks source link

Build error when using ionic build --prod #120

Closed basvdijk closed 3 years ago

basvdijk commented 3 years ago

When running ionic build --prod Ionic gives the following error:

ERROR in node_modules/@ionic-native/app-version/ngx/index.d.ts:27:22 - error NG6003: Appears in the NgModule.exports of AppModule, but could not be resolved to an NgModule, Component, Directive, or Pipe class.

This likely means that the library (@ionic-native/app-version/ngx) which declares AppVersion has not been processed correctly by ngcc, or is not compatible with Angular Ivy. Check if a newer version of the library is available, and update if so. Also consider checking with the library's authors to see if the library is expected to be compatible with Ivy.

image

Does anyone recognise this error? Of have an idea what could be causing this error?