-1

I am getting this error while running ionic serve :

[ng] An unhandled exception occurred: The target entry-point "@ionic-native/splash-screen" has missing dependencies:

[ng] - @ionic-native/core [ng] See "C:\Users\RACHED\AppData\Local\Temp\ng-VPGMIS\angular-errors.log" for further details.

[ERROR] ng has unexpectedly closed (exit code 127).

    The Ionic CLI will exit. Please check any output above for error details.

and this is

app.component.ts

package.json

ionic info

2 Answers2

3

I think you just have to uninstall older version and install new one using this:

 npm uninstall -–save @ionic-native/core
 npm install –-save @ionic-native/core@latest

and this will work

Muhammad Usman
  • 361
  • 3
  • 16
  • I do it but is still the same problem , I think there is problem in app.component.ts – rached cherif Feb 17 '21 at 12:48
  • can you share your complete code or anything which make more sense ? because it's look nothing wrong in app.component.ts – Muhammad Usman Feb 17 '21 at 13:21
  • when i delete in app.component.ts(Platform, SplashScreen and StatusBar) and initializeApp the ionic serve is working and it does not working when i keep them – rached cherif Feb 17 '21 at 13:33
  • yes, as I mentioned in my answer the issue is with your version of @ionic-native/splash-screen and @ionic-native/core version, that's why it's throw this error, please share your code or package.json and run ' ionic info ' cmd and send it's output screenshot otherwise i can't able to help you :/ – Muhammad Usman Feb 17 '21 at 13:54
  • in my case after npm uninstall --save @ionic-native/core and trying to run the core@latest got dependency error and not able to install so I tried npm install –-save @ionic-native/core@latest --force it worked for me – Dr NVS Feb 25 '23 at 16:05
0

You need to install the latest version of ionic-native/core

npm install --save @ionic-native/core@latest
Syscall
  • 19,327
  • 10
  • 37
  • 52
  • Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](/help/how-to-answer). – Community Feb 20 '22 at 18:35