Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

pnpm and declarations is true: The inferred type cannot be named without a reference to... #276

Open
dotupNET opened this issue Mar 25, 2020 · 2 comments

Comments

@dotupNET
Copy link

If you clone the repository and change the tsconfig to use declarations, a lot of "inferred type" errors are thrown.

  "compilerOptions": {
    ...
    "declaration": true,
    ...
The inferred type of 'postForgot' cannot be named without a reference to '.pnpm/registry.npmjs.org/@types/serve-static/1.13.3/node_modules/@types/express-serve-static-core'. This 
is likely not portable. A type annotation is necessary.

I need the declarations in a typescript library for express. But I can't resolve this problem.

does anyone have a solution?

@peterblazejewicz
Copy link
Collaborator

Hey, can you try this fix?:
angular/vscode-ng-language-service#657 (comment)

@dotupNET
Copy link
Author

Hi, unfortunately that doesn't help either. still behave the same

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants