Closed ALagoni97 closed 4 months ago
See https://github.com/microsoft/TypeScript/wiki/FAQ#the-inferred-type-of-x-cannot-be-named-without-a-reference-to-y-this-is-likely-not-portable-a-type-annotation-is-necessary . express-serve-static-core
is not in your dependencies
list so this an expected error
See https://github.com/microsoft/TypeScript/wiki/FAQ#the-inferred-type-of-x-cannot-be-named-without-a-reference-to-y-this-is-likely-not-portable-a-type-annotation-is-necessary .
express-serve-static-core
is not in yourdependencies
list so this an expected error
Hmm okay. Thanks for reply. 😊
🔎 Search Terms
typescript inheritance issue symlink issue pnpm issue
🕗 Version & Regression Information
After using pnpm workspace this issue occured. On another project I am working on it is working fine. I just can't seem to find the right reason this is happening...
⏯ Playground Link
No response
💻 Code
My API package.json:
My root project package.json:
🙁 Actual behavior
I am getting:
The inferred type of 'login' cannot be named without a reference to '.pnpm/@types+express-serve-static-core@4.19.5/node_modules/@types/express-serve-static-core'. This is likely not portable. A type annotation is necessary.ts(2742)
🙂 Expected behavior
Just infer the type correctly... As I have in other projects.
Additional information about the issue
No response