How to debug "Unexpected token" in table component

  • Goal:
    No error messages in console or retool UI

  • Steps:
    Removed all configuration (columns, event handlers, etc) from the table in question. Searched through the exported source code to find the unexpected )

  • Details:

I have a table that produces the following error in the console:

Unexpected token ')'. Expected a property name after '.'.

When I trigger eg a row action the error is logged multiple times in the console.

No idea when the error was introduced, I just noticed today.

I tried finding the error source, but couldn't identify anything. I removed all columns + other configuration (like event listeners, row actions, etc) from the table. The error persists.

  • Screenshots:

image

So far it seems everything is working still, but not knowing where this error is coming from is not great.

Any help appreciated!

Hello @perelin!

Very odd bug, I believe it must be a linting error on our end. I cloned your app, saw the same error and was not able to figure out where it is coming from or why it is showing up :sweat_smile:

I will send it to our eng team to see if they can get to the bottom of it. For now, I would not worry. As you said, everything is working.

If the error is blocking you in any way, let me know and I can add in more details to the bug ticket!

1 Like