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

update pnpm #1649

Merged
merged 5 commits into from
Oct 31, 2023
Merged

update pnpm #1649

merged 5 commits into from
Oct 31, 2023

Conversation

mansona
Copy link
Member

@mansona mansona commented Oct 23, 2023

I am creating this PR because I saw something strange happening in #1594 with the types build. I didn't actually do anything that could have changed the types so I reasoned that the error must have happened because we were being hit by the problem with pnpm pre 8.7

The error with the type is:

packages/macros/src/babel/error.ts(4,44): error TS2345: Argument of type 'typeof MacroError' is not assignable to parameter of type 'ErrorConstructor'.
. prepare:   Type 'typeof MacroError' provides no match for the signature '(message?: string | undefined): Error'.

I don't know what this means or why it's happening, it's a tough one to google 🙈 I pushed a fix that is probably not acceptable but at least I could get my types building locally. I would love for the TypeScript experts on the team to tell me what this hack fix should really look like 😂

Edit: Thanks to @NullVoxPopuli we fixed the type issues today and this PR is ready for review 🎉 the issue with babel types is opened as an "issue" here DefinitelyTyped/DefinitelyTyped#67183

@mansona mansona marked this pull request as ready for review October 23, 2023 20:40
@mansona mansona mentioned this pull request Oct 23, 2023
@mansona mansona force-pushed the update-pnpm branch 2 times, most recently from 99df6c8 to 619ac4e Compare October 25, 2023 15:27
@mansona mansona requested a review from a team October 25, 2023 17:09
@mansona mansona self-assigned this Oct 25, 2023
@ef4 ef4 merged commit 20d0348 into main Oct 31, 2023
209 checks passed
@ef4 ef4 deleted the update-pnpm branch October 31, 2023 15:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants