capacitor: bug: infinite loop on console error using quasar framework
Bug Report
https://github.com/quasarframework/quasar/issues/9029 Using new capacitor 3 with vue3 we have bad error handling, when in template any error, logger of capacitor3 throw an error (details in quasar issue)
Capacitor Version
npx cap doctor
π Capacitor Doctor π
Latest Dependencies:
@capacitor/cli: 2.4.7
@capacitor/core: 2.4.7
@capacitor/android: 2.4.7
@capacitor/ios: 2.4.7
Installed Dependencies:
@capacitor/cli: 3.0.0-rc.0
@capacitor/core: 3.0.0-rc.0
@capacitor/android: 3.0.0-rc.0
@capacitor/ios: 3.0.0-rc.0
[success] iOS looking great! π
[success] Android looking great! π
Platform(s)
Android & iOS
Current Behavior
Stack overflow exception
Expected Behavior
Normal error output
Code Reproduction
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (13 by maintainers)
Commits related to this issue
- fix: vue3 support #4506 — committed to bazuka5801/capacitor by bazuka5801 3 years ago
- fix(bridge): Safely JSON.Stringify circular json on log (#4507) * fix: vue3 support #4506 * fix: additional JSON.stringify lines * fix: safeStringify method context — committed to ionic-team/capacitor by bazuka5801 3 years ago
Weβre still aware of the issue, donβt worry π we were focused on getting the newest RC out the past several days.
@elylucas Found a solution with check for proxy (linked pr)
@thomasvidas Yes, problem with
JSON.stringifymethod, that canβt stop when serialize circular proxy (throwing StackOverflow), I write quick fix, which help me (posted commit + PR).