79270044

Date: 2024-12-10 23:02:56
Score: 0.5
Natty:
Report link

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

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: antonioc_cl