Duplicate identifier error


14:27:20] typescript: src/app/app.module.ts, line: 17
Duplicate identifier ‘SplashScreen’.

  L16:  import { StatusBar } from '@ionic-native/status-bar';
  L17:  import { SplashScreen } from '@ionic-native/splash-screen';

I am getting duplicate identifier error while building the apk


Seems you have SplashScreen somewhere else there…


I have the import splashscreen line in app.components.ts as well as app.modules.ts.
It shows ‘imports’(app.modules.ts) - An object literal cannot have multiple properties with the same name in strict mode.