Replies: 2 comments 1 reply
-
At the moment this step that says "it's a good idea", it's really required https://capacitorjs.com/docs/v3/updating/3-0#importing-capacitorcore We are working in a fix so it's not required, but you'll need to import @capacitor/core for now |
Beta Was this translation helpful? Give feedback.
1 reply
-
I found the issue. I had installed Playwright to do tests, so I set the Deleting the line |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
After updating to Capacitor 3, when I launch my iOS app, I get a blank screen and see
deviceready has not fired after 5 seconds
in the console.I followed the upgrade guide and added the plugins separately. I also added App, Haptics, and Keyboard for Ionic.
My app builds and runs on my computer using
ionic serve
. But, when I runionic build; ionic cap copy ios
and then install with Xcode to my iPhone, I get thedeviceready has not fired
error. I get the same error when I runnpx cap run ios
and install to iPhone.I tried editing the code to my app and removing all calls to plugins; when I did that, I get a blank screen and no error at all in the console.
So then I tried deleting the ios app and re-creating with
ionic cap add ios
, but I still have the same problem.This is similar to the issue #4366 but I am importing
import '@capacitor/core';
in the index file.Any ideas about how I can debug what is wrong? Since it works on my computer and only fails on iPhone with a single error, I'm really having trouble figuring out what to do.
More info: I tried debugging in Android, and I get the same error. Android Studio console has more informative debugging info:
So there are at least two problems here, first
Uncaught TypeError: Capacitor.createEvent is not a function
:2021-04-07 17:05:02.978 1264-1264/com.myapp.myappname E/Capacitor/Console: File: http://localhost/ - Line 215 - Msg: Uncaught TypeError: Capacitor.createEvent is not a function
And second, a bunch of
Unable to open asset URL: http://localhost/webapp/static/css/main.82724720.chunk.css
Beta Was this translation helpful? Give feedback.
All reactions