-
Notifications
You must be signed in to change notification settings - Fork 110
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
TypoError: cannot read the property on undefined (reading 'div') this occur when i install react-tinder-card in my app #155
Comments
Same error |
same error here, too |
Are you building a react-native or react app? It looks like it's trying to import the react code in a native project 🤔 Please try to make a minimal reproducible demo and I can probably find a solution. |
using exact version "1.4.5" works for me |
Any update on this error? Been stuck for 3 days now. |
Faced with the same error, switching to the previous version helped. What will the fix be waiting for from the author |
Hi, unfortunately I encountered the same error. I tried downgrading versions one by one, and going from Steps to reproduce:
Error in console
BTW, great lib, thank you for your work 👍 |
is there any chance you can give a hint what is breaking here @3DJakob ? I can try to make a PR for this, but currently I don't know how to fix it 😞 I see that comment in your code node_modules/react-tinder-card/index.native.js:81
and this throws an error ("Uncaught TypeError: Cannot read properties of undefined (reading 'div')") on web, but I don't understand why it is undefined. |
same issue |
I changed the version of @react-spring/web to 9.5.5, and I have no more the issue |
Same |
I also encountered the same error. |
I got this error when I run it in Docker, but when I run it in my local machines works fine. Anyone had this issue. I am using node 20.11.0 |
Hello. I solved this error with the following steps:
PD not related to this issue: @3DJakob It will be really useful add an onclick function in the interface Props in the index.d.ts. |
This fixed for me. was stuck for 2 hours and then I did: npm uninstall @react-spring/web then: |
Uncaught runtime errors:
×
ERROR
Cannot read properties of undefined (reading 'div')
TypeError: Cannot read properties of undefined (reading 'div')
at ./node_modules/react-tinder-card/index.js (http://localhost:3000/static/js/bundle.js:43994:30)
at options.factory (http://localhost:3000/static/js/bundle.js:53659:31)
at webpack_require (http://localhost:3000/static/js/bundle.js:53104:33)
at fn (http://localhost:3000/static/js/bundle.js:53316:21)
at ./src/components/datingCards/DatingCards.jsx (http://localhost:3000/static/js/bundle.js:102:75)
at options.factory (http://localhost:3000/static/js/bundle.js:53659:31)
at webpack_require (http://localhost:3000/static/js/bundle.js:53104:33)
at fn (http://localhost:3000/static/js/bundle.js:53316:21)
at ./src/App.js (http://localhost:3000/static/js/bundle.js:16:93)
at options.factory (http://localhost:3000/static/js/bundle.js:53659:31)
The text was updated successfully, but these errors were encountered: