Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pnpm v7] typescript code question #4692

Closed
LastKing opened this issue May 7, 2022 · 6 comments
Closed

[pnpm v7] typescript code question #4692

LastKing opened this issue May 7, 2022 · 6 comments

Comments

@LastKing
Copy link

LastKing commented May 7, 2022

pnpm version: 7.0.0

Code to reproduce the issue:

https://github.com/LastKing/ts-proto-pnpm-issue

Expected behavior:

The name field is on the object instance.

Actual behavior:

image

Additional information:

  • node -v prints: 16.13.1
  • Windows, macOS, or Linux?: macos and Linux
@mcmxcdev
Copy link
Contributor

How is this issue related to pnpm? You need to type I properly, so the code knows that there is a name property.

@LastKing
Copy link
Author

I use pnpm@6 .There is no such problem...
I don't known why.

@LastKing
Copy link
Author

please give me some suggest.
How deal with the promblem?

Thank you for your help.

@spacecave
Copy link

same issue with v7.0.0,when i use jest in typescript project
wecom-temp-a04e09a927f14ca60deaa4f64e1fae22

but when i use v6.23.2,it works

@thecreazy
Copy link

Same for me using express... it's incredible!
Schermata 2022-06-14 alle 17 03 03
But using npm 6 no problems!

@MalpenZibo
Copy link

Try adding all the dependencies declared here: https://www.npmjs.com/package/@types/express

In my case: @types/body-parser @types/serve-static @types/express-serve-static-core @types/qs

In general, see https://github.com/pnpm/pnpm/discussions/4646

  • strict-peer-dependencies is true by default 4427.

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

No branches or pull requests

5 participants