If there is an error in a JS query, only the error message shows up.
I have a 400+ line JS query and getting "missing ) after argument list"
is not as useful as knowing that the error was in line 158 or in function triggerZoomAPI
.
If there is an error in a JS query, only the error message shows up.
I have a 400+ line JS query and getting "missing ) after argument list"
is not as useful as knowing that the error was in line 158 or in function triggerZoomAPI
.
Also, this error was driving me crazy because I had no idea why it was happening:
Failed to execute 'postMessage' on 'Window': # could not be cloned.
It happens if you return a rejected promise in the JS query:
return new Promise((resolve, reject) => {
reject();
});
Hi Nacho! Weβve definitely got some room to improve JS query errors, and Iβm hoping we can move more of the errors/logging from the browser console into the preview pane of the query. Weβre currently reworking and clarifying the preview behavior of different query types, and Iβll keep this in mind as we work on the preview of JS queries.
Is there any update here? It's been four years now and still we don't have line numbers in JavaScript errors
Hello @OlliePartly, we've initiated a new Feature Request to emphasize the importance of this matter. We've linked this discussion to it and will keep the topic open to collect +1s.