uploadthing: [Bug]: TypeError: Cannot read properties of undefined (reading 'url')
What happened?
When I try to upload an image I get this error msg
- error TypeError: Cannot read properties of undefined (reading ‘url’) at eval (webpack-internal:///(rsc)/./node_modules/uploadthing/dist/chunk-LQBAB5WK.mjs:257:36) at Object.POST (webpack-internal:///(rsc)/./node_modules/uploadthing/dist/chunk-66XXRAVC.mjs:285:32)
What did you expect to happen?
should upload without any issue
Version
"uploadthing": "^5.6.1"
"@uploadthing/react": "^5.6.1",
Reproduction Steps
git clone https://github.com/St1ggy/discord-clone/tree/uploadthing-bug
git checkout uploadthing-bug
- Create a .env and put in your secrets
bun i
bun dev
- Upload file. Meet the bug.
Link to reproduction
Not minimal, but anyway bugged: https://github.com/St1ggy/discord-clone/tree/uploadthing-bug
Code of Conduct
- I agree to follow this project’s Code of Conduct
About this issue
- Original URL
- State: closed
- Created 9 months ago
- Reactions: 1
- Comments: 19
Got the same bug. In my case the issue was with the node version. Switching to 18.17.1 solved the problem.