Cannot find module '@ionic-native/splash-screen/ngx'

HI there, hope you will be fine.
Actually I created a balnk new project in ionic and when I run ( ionic serve ), it says Cannot find module ‘@ionic-native/splash-screen/ngx’ is not found. Here is the screenshort of the error:

my ionic version is 5.4.4. I also tried in the latest one.
I also tried to install this plugin:

but same error again and again.Looking forward for you response, Thanks!


check in your ng_module/@ionic-native/splash-screen/ …is ngx folder available if not then import like
import { SplashScreen } from ‘@ionic-native/splash-screen’
just remove ‘/ngx’ if ngx folder is available then uninstall and install it again

npm uninstall @ionic-native/splash-screen
npm install --save @ionic-native/splash-screen