pingdotgg / uploadthing

File uploads for modern web devs
https://uploadthing.com
MIT License
3.7k stars 261 forks source link

[bug]: Error uploading the file in NextJs #847

Closed shawkyelshazly1 closed 1 month ago

shawkyelshazly1 commented 1 month ago

Provide environment information

System:
    OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
    CPU: (6) x64 Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz
    Memory: 918.01 MB / 7.73 GB
    Container: Yes
    Shell: 5.8 - /usr/bin/zsh
  Binaries:
    Node: 22.2.0 - /home/linuxbrew/.linuxbrew/bin/node
    npm: 10.8.0 - /home/linuxbrew/.linuxbrew/bin/npm
  npmPackages:
    @uploadthing/react: ^6.6.0 => 6.6.0
    uploadthing: ^6.12.0 => 6.12.0

Describe the bug

I's using NextJs and getting this error one i press upload file on dropzone

ℹ UPLOADTHING 11:29:24 PM UploadThing dev server is now running! ⨯ (FiberFailure) TypeError: Cannot read properties of undefined (reading 'Symbol(uploadthing-custom-id-symbol)') at eval (webpack-internal:///(rsc)/./node_modules/uploadthing/server/index.js:762:21) POST /api/uploadthing?actionType=upload&slug=fileUploader 500 in 53ms

Link to reproduction

https://github.com/shawkyelshazly1/konnekt/tree/main/konnekt-app

To reproduce

add env and run the project

Additional information

No response

👨‍👧‍👦 Contributing

Code of Conduct