Replies: 2 comments
-
same error |
Beta Was this translation helpful? Give feedback.
-
Actually it looks like it is a known issue we can see this in the code next-auth/packages/next-auth/src/react.tsx Lines 533 to 535 in 507aadd I think we have two workaround for this
// @ts-expect-error - Known issue with Auth.js v5 + React 19 type definitions
import { Element } from 'react';
declare global {
namespace JSX {
// TOFIX: Remove this hack
// Hack to allow `React.JSX.Element` to be used as a type
interface Element extends React.JSX.Element {}
}
} I would rather go with the first option as it is more targeted. |
Beta Was this translation helpful? Give feedback.
-
I just upgraded to Next 15/React 19 and found the following error with
[email protected]
&@auth/[email protected]
Usage
Beta Was this translation helpful? Give feedback.
All reactions