I'm getting this error on ng serve:
ERROR in node_modules/ng2-image-viewer/index.d.ts:3:22 - error NG6003: Appears in the NgModule.exports of SharedModule, but could not be resolved to a NgModule, Component, Directive, or Pipe class.
This likely means that the library (ng2-image-viewer) which declares ImageViewerModule 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.
ng2-image-vieweris only compatible with up to Angular 5. I would abandon this plugin and look for another one - it is not being maintained. - pixelbits