Ionic cordova run browser shows me blank gray page

Hey there…

every time I do “ionic cordova run browser” I get a gray page:
image

and an exception in console:

Exception calling native with command :: SplashScreen :: hide ::exception=NotFoundError: Failed to execute ‘removeChild’ on ‘Node’: The node to be removed is not a child of this node.

and this one too:

Uncaught DOMException: Failed to execute ‘removeChild’ on ‘Node’: The node to be removed is not a child of this node.
at Object.hide (http://localhost:8000/plugins/cordova-plugin-splashscreen/src/browser/SplashScreenProxy.js:83:27)
at http://localhost:8000/plugins/cordova-plugin-splashscreen/src/browser/SplashScreenProxy.js:118:26
at t.invokeTask (http://localhost:8000/build/polyfills.js:3:9172)
at r.runTask (http://localhost:8000/build/polyfills.js:3:4349)
at invoke (http://localhost:8000/build/polyfills.js:3:10150)
at e (http://localhost:8000/build/polyfills.js:2:28113)

BUT, after refresh it doesn’t appear again and also doesn’t appear on device.

Is someone familiar with this?

thanks :slight_smile:

Hi, did you solve this issue? If yes, can you please share how? I’m struck up facing the same issue.

Hey guys the only workaround I found was to just comment the lines regarding to splash-screen on android platform tags present in config.xml file before running the app on browser to avoid this error. Then uncommenting it before generating the apk file for android apps the regain splashscreen.

This is due to the splash screen. Add this to config.xml:

<platform name="browser">
    <preference name="ShowSplashScreen" value="false" />
</platform>

2 Likes