Ionic 离子Angular '[控制台.错误]:“ERROR”{}',没有任何说明/日志

qojgxg4l  于 2022-12-08  发布在  Ionic
关注(0)|答案(2)|浏览(113)

Hello, I am having errors in my Ionic App.
I'm running

ionic cordova run android --livereload --consolelogs --serverlogs

with a physical phone.
As you can see I'm able to see console.logs, but there must be an error that is creating the

[console.error]: "ERROR" {}

But it doesn't explain anything! There is no error logs or stack trace error. I don't have any console.error in my code, so it must be an unhandled error somewhere...
Has anybody experienced something like this? I don't know what to do.
Thank you.

42fyovps

42fyovps1#

我发现了chrome://inspect/#个设备。
使用inspect,它可以完美地显示错误日志。

i5desfxk

i5desfxk2#

在iOS上通过Xcode运行离子应用程序时出现了同样的问题。
在这种情况下,可以使用safari检查webview,并显示--consolelogs未显示的javascript错误。
要打开javascript控制台,您必须:

  • 在iPhone上启用Safari高级设置中的“Web检查器”
  • 通过USB连接iPhone(如果尚未连接)
  • 在Mac上打开Safari并导航DevelopYour Iphone namelocalhost

相关问题