I found an answer from Clerk Discord that is working for me:
Hey folks, we've have quite a few reports of users running into this type of error when spinning up new NextJs apps or upgrading older apps. Here's how to resolve the error:
This error is caused by @types/react version 18.3.14. If you run into this issue we recommend the following versions.
If using Next 15, you'll have to have the following versions to resolve the error:
"next": "15.0.4",
"react": "^19.0.0",
"react-dom": "^19.0.0",
"@types/react": "^19.0.1",
If using Next 14, you can utilize the following versions:
"next": "14.2.20",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"@types/react": "^18.3.12",
You'll have to stay on this version until this [PR][1] is merged.
PR: https://github.com/DefinitelyTyped/DefinitelyTyped/pull/71388