Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot read properties of null (reading 'trans') #2085

Open
Nedi11 opened this issue Oct 20, 2024 · 1 comment
Open

Uncaught TypeError: Cannot read properties of null (reading 'trans') #2085

Nedi11 opened this issue Oct 20, 2024 · 1 comment

Comments

@Nedi11
Copy link

Nedi11 commented Oct 20, 2024

When entering duplicate data and there is a unique constraint I get this error.

Reproduction (open console to see the error):
https://stackblitz.com/edit/vite-react-ts-bkughp?file=src%2FApp.tsx

I am using this in an electron app, and when doing so there I get a different error, I don't know if it is related but it is caused in the same way: When I insert data into a table and those records already exist in that table, and there is a unique constraint.

Uncaught TypeError: Cannot read properties of null (reading 'type') at chunk-2YHVNQFA.js?v=2b447eb7:4861:18 at Array.reduce () at applyOptimisticOps (chunk-2YHVNQFA.js?v=2b447eb7:4858:31) at chunk-2YHVNQFA.js?v=2b447eb7:5208:27 at chunk-2YHVNQFA.js?v=2b447eb7:1085:23 at callListener (chunk-2YHVNQFA.js?v=2b447eb7:856:16) at endMicroTickScope (chunk-2YHVNQFA.js?v=2b447eb7:889:23) at execute (chunk-2YHVNQFA.js?v=2b447eb7:5619:30) at _doQuery (chunk-2YHVNQFA.js?v=2b447eb7:5670:23) at execInGlobalContext (chunk-2YHVNQFA.js?v=2b447eb7:1096:13)

@Nedi11
Copy link
Author

Nedi11 commented Oct 20, 2024

When entering duplicate data and there is a unique constraint I get this error.

Reproduction (open console to see the error): https://stackblitz.com/edit/vite-react-ts-bkughp?file=src%2FApp.tsx

I am using this in an electron app, and when doing so there I get a different error, I don't know if it is related but it is caused in the same way: When I insert data into a table and those records already exist in that table, and there is a unique constraint.

Uncaught TypeError: Cannot read properties of null (reading 'type') at chunk-2YHVNQFA.js?v=2b447eb7:4861:18 at Array.reduce () at applyOptimisticOps (chunk-2YHVNQFA.js?v=2b447eb7:4858:31) at chunk-2YHVNQFA.js?v=2b447eb7:5208:27 at chunk-2YHVNQFA.js?v=2b447eb7:1085:23 at callListener (chunk-2YHVNQFA.js?v=2b447eb7:856:16) at endMicroTickScope (chunk-2YHVNQFA.js?v=2b447eb7:889:23) at execute (chunk-2YHVNQFA.js?v=2b447eb7:5619:30) at _doQuery (chunk-2YHVNQFA.js?v=2b447eb7:5670:23) at execInGlobalContext (chunk-2YHVNQFA.js?v=2b447eb7:1096:13)

Upon a second look I actually get the same error in electron but I also get the "reading type" error
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant