S
SolidJS2y ago
jorge

Trying to modify a type from @auth/core

Hi there, I am trying to edit the DefaultSession type from @auth/core as such:
import { DefaultSession } from "@auth/core/types";

declare module '@auth/core/types' {
interface Session {
user: {
id: string;
} & DefaultSession['user'];
}
}
import { DefaultSession } from "@auth/core/types";

declare module '@auth/core/types' {
interface Session {
user: {
id: string;
} & DefaultSession['user'];
}
}
in types/@auth.d.ts However, I am getting this error when I run pnpm dev
An unhandled error occured: Error: No known conditions for "./types" specifier in "@auth/core" package
An unhandled error occured: Error: No known conditions for "./types" specifier in "@auth/core" package
Am I missing something? I'm not very familiar with .d.ts files and solid start, so I might be missing something.
1 Reply
jorge
jorgeOP2y ago
I'm using the with-auth starter
Want results from more Discord servers?
Add your server