Reis
Reis
BABetter Auth
Created by Reis on 3/19/2025 in #help
The inferred type of 'authClient' cannot be named without a reference to [email protected]
Currently having an issue with undici:
The inferred type of 'authClient' cannot be named without a reference to '.pnpm/[email protected]/node_modules/undici-types'. This is likely not portable. A type annotation is necessary.
The inferred type of 'authClient' cannot be named without a reference to '.pnpm/[email protected]/node_modules/undici-types'. This is likely not portable. A type annotation is necessary.
My auth client:
export const authClient = createAuthClient({
baseURL: 'http://localhost:3000',
fetchOptions: {
onError: (ctx) => {
addToast({
title: 'Error',
description: ctx.error.message,
variant: 'solid',
color: 'danger',
});
},
},
plugins: [usernameClient()],
});
export const authClient = createAuthClient({
baseURL: 'http://localhost:3000',
fetchOptions: {
onError: (ctx) => {
addToast({
title: 'Error',
description: ctx.error.message,
variant: 'solid',
color: 'danger',
});
},
},
plugins: [usernameClient()],
});
My tsconfig:
{
"extends": "@repo/typescript-config/nextjs.json",
"compilerOptions": {
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
},
"include": [
"next-env.d.ts",
"next.config.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": ["node_modules"]
}
{
"extends": "@repo/typescript-config/nextjs.json",
"compilerOptions": {
"lib": ["ESNext", "DOM", "DOM.Iterable"],
"plugins": [
{
"name": "next"
}
],
"paths": {
"@/*": ["./src/*"]
}
},
"include": [
"next-env.d.ts",
"next.config.ts",
"**/*.ts",
"**/*.tsx",
".next/types/**/*.ts"
],
"exclude": ["node_modules"]
}
8 replies
BABetter Auth
Created by Reis on 12/2/2024 in #bug-reports
High CPU usage when importing the library on a monorepo
No description
3 replies