./app/(api)/api/chat/ask/route.ts
Attempted import error: 'authOptions' is not exported from '@/app/(api)/api/auth/[...nextauth]/route' (imported as 'authOptions').
Import trace for requested module:
./app/(api)/api/chat/ask/route.ts
./app/(api)/api/chat/create/route.ts
Attempted import error: 'authOptions' is not exported from '@/app/(api)/api/auth/[...nextauth]/route' (imported as 'authOptions').
Import trace for requested module:
./app/(api)/api/chat/create/route.ts
./app/(api)/api/chat/mine/route.ts
Attempted import error: 'authOptions' is not exported from '@/app/(api)/api/auth/[...nextauth]/route' (imported as 'authOptions').
Import trace for requested module:
./app/(api)/api/chat/mine/route.ts
./app/(api)/api/chat/view/route.ts
Attempted import error: 'authOptions' is not exported from '@/app/(api)/api/auth/[...nextauth]/route' (imported as 'authOptions').
Import trace for requested module:
./app/(api)/api/chat/view/route.ts
✓ Compiled successfully
Linting and checking validity of types .Failed to compile.
./app/(api)/api/chat/ask/route.ts:4:10
Type error: Module '"@/app/(api)/api/auth/[...nextauth]/route"' declares 'authOptions' locally, but it is not exported.
2 | import { getServerSession } from 'next-auth';
3 | import dbConnect from "@/app/(api)/lib/mongoose";
4 | import { authOptions } from "@/app/(api)/api/auth/[...nextauth]/route";
| ^
5 | import chats from '@/app/(api)/models/chats';
6 | import mongoose from 'mongoose';
7 |
Next.js build worker exited with code: 1 and signal: null
(.venv) leo@Mac web % @amber burrow