Listview component, "item is not defined"?

image
I used the data above to the listview, but the listview shows "the item is not defined", what is this mean?

How can I solve this problem?

Thank you

4 Likes

Hey there @Alvin_Wang,

It seems like the item is being read but you're still getting the warning, right? Or could yo uclarify what the issue is?

Hi @MiguelOrtiz , thanks for your replay. I am using the listview compoent to show the JSON, everything looks good except the warnings, I just want to know what the warning is?

2 Likes

Hey @Alvin_Wang,

It seems like a wrong warning in this case. It is not unusual for this to happen, and the retool team will pick on this and make sure this is addressed.

It would be helpful if you could share the setup of your listview, it may help the identify what the source of the warning is.

Hi @MiguelOrtiz ,

I have the query named "TransferRecords",


It return the result as a JSON file.

In the listview,I set the source as {{TransferRecords.data}} :
image
When I fetch the data in the listview using {{item.sku}}, it shows the warning.


It shows the curved line.
image

2 Likes

Thanks @Alvin_Wang,

definitely not an appropriate warning as you're doing everything by the book (at least I would do the same). Will let the Retool team chip into this.

Hi @Alvin_Wang, are we on Cloud or Self-hosted Retool? If Self-hosted, what version?

I wasn't able to reproduce this issue on Cloud with a similar setup:

I'm also experiencing this for a while now. Occurs with data from queries and from variables.
When I start typing the query or variable name, Retool won't suggest/auto complete the elements and will give a warning. While the data actually is being parsed. It is quite an annoying error.
Today I faced it again with a variable datajson that was 'undefined' but the data was shown in the json editor. I could not use the value of datajson in another JS query.

It does not autocomplete:

while it does for query1:

I'm running selfhosted 3.75.8, but this bug is there from 3.75.1

1 Like

Hi @mbruijnpff, thank you for sharing those details! :slightly_smiling_face:

I'm running v3.75.8-stable locally and tried reproducing with no success.

No warnings referencing the value of a variable in a JS query:
image

Suggestion shows variable name:
image

Tested with a new query an variable:

Json Explorer's value reference to the variable:
image

If you’re seeing these warnings consistently, could you share the steps that reproduce them?

@MiguelOrtiz
I am using the Cloud version.

1 Like

Hi @Paulo , problem is that it is not very consistent. The same query and app is today showing the suggestions for autocomplete and the query is running fine now. It can't have been a refresh, as I've already refreshed the app screen already multiple times. I can't tell when it is always happening.

We’ll keep an eye out for more reports and continue attempting to reproduce the issue on our end. These linter issues were present in versions 3.4x–3.5x and were largely resolved in v3.75 (except for cases like Buffer on Workflows). If we're seeing them again, there may have been a regression. Please let us know if it's happening in more places.

@Alvin_Wang, in your case, are you seeing these warnings consistently?

Hi @Paulo, I only can see this warnings in this app.