bug: White screen on update to to Ionic 4.6.0 (<html> root element never receives 'hydrated' class)
See original GitHub issueBug Report
Ionic version:
[x] 4.x
Current behavior:
The <html>
root element never receives the <html class='hydrated'>
hydrated class, preventing the application from appearing, even though the app is ready and running. Adding the hydrated class manually causes the app to appear and function normally.
The application builds normally in both dev and --prod modes without warnings or errors. No warnings or errors appears in the javascript console. I’m simply at a loss!
Expected behavior:
The hydrated class should be applied and the application should appear.
Steps to reproduce:
// update from Ionic 4.5.0 to 4.6.0 -- no other changes made to app.
rm -rf node_modules/
npm i -s @ionic/angular@4.6.0 @ionic/core@4.6.0
npm i
// Run application - white screen appears
Related code:
Not currently able to reproduce in a sample app. I’ll keep trying but it’s not feeling great 😃
insert short code snippets here
Other information:
Ionic info:
Ionic:
Ionic CLI : 5.2.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.6.0
@angular-devkit/build-angular : 0.800.3
@angular-devkit/schematics : 7.3.1
@angular/cli : 8.0.3
@ionic/angular-toolkit : 1.5.1
Cordova:
Cordova CLI : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : not available
Cordova Plugins : not available
Utility:
cordova-res : not installed
native-run : not installed
System:
Android SDK Tools : 26.1.1 (/usr/local/share/android-sdk)
ios-deploy : 1.9.4
NodeJS : v12.3.1 (/usr/local/Cellar/node/12.3.1/bin/node)
npm : 6.9.0
OS : macOS Mojave
Xcode : Xcode 10.2.1 Build version 10E1001
Issue Analytics
- State:
- Created 4 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
White screen on update to to Ionic 4.6.0 (<html> root element ...
Current behavior: The <html> root element never receives the <html class='hydrated'> hydrated class, preventing the application from appearing, ...
Read more >Ionic 4: global.scss cause blank screen - only to browser
I fixed the problem by adding the hydrated class to the html I want to display before angular has fully bootstrapped. EDIT: Search...
Read more >Why white screen stuck after splash screen in Ionic 4?
I've solved this issue by setting the correct parameters on config.xml <preference name="AutoHideSplashScreen" value="false" /> <preference ...
Read more >signature=14611b395b980b0944234a35b2c772db,ionic ...
If you are using @ionic/angular, please update the version number of any @angular packages in your package.json file to 7.0.3. "dependencies": {.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@QuentinFchx Can you please create a new issue?
Hi there,
I’ve got the same issue when upgrading to
4.7
(from^4.4
)It seems that the
hydrated
class is not applied to thehtml
element if no ionic custom elements are present on the page at init.I’ll just override
html:not(.hydrated) body { display: none; }
for now…My use-case: I use
@angular/components
and custom ones. I only use@ionic
for theplatform
andstorage
services and I pick a fewion-
components which are displayed in very specific cases.