You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

next-auth@4.24.10版本导入NextAuth出现TS2305错误的问题咨询

next-auth@4.24.10版本导入NextAuth出现TS2305错误的问题咨询

我在使用next-auth@4.24.10版本时,导入NextAuth遇到了TypeScript错误,具体情况如下:

我的导入代码:

import { NextAuth } from 'next-auth';

出现的错误提示:

Module "next-auth" has no exported member 'NextAuth'.ts(2305) import NextAuth

想请教一下这是什么问题?我当前使用的next-auth版本是"next-auth": "^4.24.10"。

备注:内容来源于stack exchange,提问作者Tonni Akter Bithi

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.15 09:00:28