adrianhajdin / threads

Develop Threads, Next.js 13 app that skyrocketed to 100 million sign-ups in less than 5 days, and dethroned giants like Twitter, ChatGPT, and TikTok to become the fastest-growing app ever!
https://threads-psi.vercel.app
1.49k stars 285 forks source link

Property 'fileUrl' does not exist #111

Closed mhaseebali closed 5 months ago

mhaseebali commented 5 months ago

This is the error which occurred on line # 64-65 in the AccountProfile.tsx file Property 'fileUrl' does not exist on type 'ClientUploadedFileData<{ uploadedBy: string; }>'.

The issue is the fileUrl which is not found under clientuploadedfiledata, if you have any solutions please share them otherwise this is how I'm using those lines of code:

if (imgRes && (imgRes[0] as any).fileUrl) {
  values.profile_photo = (imgRes[0] as any).fileUrl;
}
mhaseebali commented 5 months ago

It seems to be also resolved by changing it from fileUrl to just url