Theo's Typesafe CultTTC
Theo's Typesafe Cult15mo ago
5 replies
Vida Zing

UploadButton Error: Cannot read properties of undefined (reading 'match')

I'm following the tutorial and I have an error at https://youtu.be/d5x0JCZbAJs?t=3622 for UploadButton. Any thoughts?

Helpful info:

I'm using the latest versions of uploadthing:

dependencies:
@clerk/nextjs 5.0.0-beta.46 next 14.2.15
@t3-oss/env-nextjs 0.10.1 postgres 3.4.4
@uploadthing/react 7.0.3 react 18.3.1
@vercel/postgres 0.10.0 react-dom 18.3.1
drizzle-orm 0.33.0 uploadthing 7.1.0
geist 1.3.1 zod 3.23.8

devDependencies:
@types/eslint 8.56.12
@types/node 20.16.11
@types/react 18.3.11
@types/react-dom 18.3.0
@typescript-eslint/eslint-plugin 8.8.1
@typescript-eslint/parser 8.8.1
drizzle-kit 0.24.2
eslint 8.57.1
eslint-config-next 14.2.15
eslint-plugin-drizzle 0.2.3
postcss 8.4.47
prettier 3.3.3
prettier-plugin-tailwindcss 0.6.8
tailwindcss 3.4.13
typescript 5.6.3
Screenshot_2024-10-12_at_4.56.19_PM.png
YouTubeTheo - t3․gg
The Modern React Tutorial is FINALLY done. This one took awhile.

Shoutout to ALL the awesome sponsors who made this possible:
- Vercel
- Clerk
- Posthog
- Sentry
- Upstash

NOTES I MENTION DURING VIDEO
"Nextgram": https://github.com/vercel/nextgram/tree/main/app
"useUploadThingInputProps": https://gist.github.com/t3dotgg/0464ca78e94acce80ba04ca...
From 0 to Production - The Modern React Tutorial (RSCs, Next.js, Sh...
Was this page helpful?