Closed Revarh closed 1 year ago
Thanks for reporting this. Please provide a sample application showing the issue.
Hi, Here is a test repo with the error: https://github.com/Revarh/test-ra-error Thank you
Hi, Thank you for the repo. However, to run the project and reproduce the error, we are missing an access to your supabase instance, or instructions on how to setup our own instance with the database schema and data.
Also, could you please provide the full stacktrace of the error (with source file names and line numbers)? It would at least indicate from which file the error originated.
Lastly, I see that you are using a custom dataProvider on top of the supabase dataProvider. Can you check if you still have the error without it? (which would tend to indicate the error actually comes from this custom implementation or from the Proxy)
Thanks.
Hi, In the meantime, trying to eliminate leads, I managed to find the issue: one package was either corrupted, or too new. Let me explain:
The project I am working on is a copy of one of a colleague, which totally works using the same code. Basically, I understood that supabaseAuthProvider() gives basic methods GetList, GetOne, etc... But it was not working with me. Either I had to create my own methods, or something was wrong. So I was misleaded for a while.
Finally I updated my packages to match those of my colleague, and only ONE was different: "@raphiniert/ra-data-postgrest" which I had in version "^2.0.0-alpha.3", and my colleague "^1.20".
Now everything is working properly.
I hope this will help if anyone gets the same error.
Best, R.
Alright. Glad you managed to solve your issue then, and thank you for your feedback :slightly_smiling_face:
Hi everyone,
I am facing an issue using React Admin with ra-supabase. The following message appears in the logs and I can't find why:
TypeError: primaryKeys is undefined
Here are my codes:
supabase.js
baseDataProvider.js
dataProvider.js
App.js
Finally, in supabase:
Thank you in advance for your answers !
Best, R.