return new TSError(diagnosticText, diagnosticCodes, diagnostics);
^
TSError: ⨯ Unable to compile TypeScript:
src/server/auth/index.ts:1:31 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@lucia-auth/adapter-prisma")' call instead.
To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to 'F:/Projects/Web/temp/test2/package.json'.
1 import { PrismaAdapter } from "@lucia-auth/adapter-prisma";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/server/auth/index.ts:2:38 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("lucia")' call instead.
To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to 'F:/Projects/Web/temp/test2/package.json'.
return new TSError(diagnosticText, diagnosticCodes, diagnostics);
^
TSError: ⨯ Unable to compile TypeScript:
src/server/auth/index.ts:1:31 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("@lucia-auth/adapter-prisma")' call instead.
To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to 'F:/Projects/Web/temp/test2/package.json'.
1 import { PrismaAdapter } from "@lucia-auth/adapter-prisma";
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
src/server/auth/index.ts:2:38 - error TS1479: The current file is a CommonJS module whose imports will produce 'require' calls; however, the referenced file is an ECMAScript module and cannot be imported with 'require'. Consider writing a dynamic 'import("lucia")' call instead.
To convert this file to an ECMAScript module, change its file extension to '.mts', or add the field `"type": "module"` to 'F:/Projects/Web/temp/test2/package.json'.
2 import { Lucia, Session, User } from "lucia";
~~~~~~~
I've tried changing to .mts .cts nothing works
Here is my ts.server.config