capacitor

Webpack chunks are unable to load on Android. Web and iOS are fine ( ChunkLoadError: Loading chunk pages-home-home-module failed.)

杀马特。学长 韩版系。学妹 提交于 2020-06-26 07:36:53
问题 I have an ionic 4 capacitor app that is working properly on iOS. I am using Angular 8 with lazyloading. However, whenever I want to run the android app, I get a significant amount of errors saying that many chunks failed to load. I do not get any error doing ionic build --prod Here are the error messages: E/Capacitor/Console: File: http://localhost/polyfills-es2015.92885f6bd7b81e5291ae.js - Line 1 - Msg: Unhandled Promise rejection: Cannot read property 'isProxied' of undefined ; Zone: <root>

Webpack chunks are unable to load on Android. Web and iOS are fine ( ChunkLoadError: Loading chunk pages-home-home-module failed.)

流过昼夜 提交于 2020-06-26 07:36:21
问题 I have an ionic 4 capacitor app that is working properly on iOS. I am using Angular 8 with lazyloading. However, whenever I want to run the android app, I get a significant amount of errors saying that many chunks failed to load. I do not get any error doing ionic build --prod Here are the error messages: E/Capacitor/Console: File: http://localhost/polyfills-es2015.92885f6bd7b81e5291ae.js - Line 1 - Msg: Unhandled Promise rejection: Cannot read property 'isProxied' of undefined ; Zone: <root>

Hide Splash Screen in Ionic Capacitor React

限于喜欢 提交于 2020-06-26 07:22:37
问题 How can we disable the splash screen on an Ionic App? I am using Ionic 4, Capacitor and React. I have tried to add this on capacitor.config.json { "plugins": { "SplashScreen": { "launchShowDuration": 0 } } } The above code is not working at all. 回答1: You can hide the splash screen using the SplashScreen plugin : import { Plugins } from '@capacitor/core'; const { SplashScreen } = Plugins; function useSplashHide(){ useEffect(() => { SplashScreen.hide(); }, []); } Documentation is here 回答2: You