The inferred type of 'authClient' cannot be named without a reference to [email protected]
Currently having an issue with undici:
My auth client:
My tsconfig:
3 Replies
I've also added
"undici-types": "^7.5.0"
to my package.json
and the problem persists
After adding to my dependencies instead of devDependencies it worked
add
lib: ["dom"]
in your tsconfigI've got the same issue but with nanostores:
TS2742: The inferred type of authClient cannot be named without a reference to .pnpm/[email protected]/node_modules/nanostores. This is likely not portable. A type annotation is necessary.
I have "lib": ["DOM", "DOM.Iterable", "ES2022"],
and strict set in my TS config.
I'm on version 1.2.4
I also tried installing nanostores with no luck
Ignore me, TS got stuck. Installing nanostores worked!