Back to Clerk

`EmailLinkErrorCode` import moved under `/errors`

packages/upgrade/src/versions/core-2/nextjs/emaillinkerrorcode-import-change.md

latest338 B
Original Source

The EmailLinkErrorCode import path has changed from @clerk/nextjs to @clerk/nextjs/errors. You must update your import path in order for it to work correctly. Example below of the fix that needs to be made:

diff
- import { EmailLinkErrorCode } from "@clerk/nextjs"
+ import { EmailLinkErrorCode } from "@clerk/nextjs/errors"