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

[Bug]: Compatibility issue with TS 5.6 #6685

Open
1 task
Ayc0 opened this issue Feb 12, 2025 · 0 comments
Open
1 task

[Bug]: Compatibility issue with TS 5.6 #6685

Ayc0 opened this issue Feb 12, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@Ayc0
Copy link
Contributor

Ayc0 commented Feb 12, 2025

Self-service

  • I'd be willing to implement a fix

Describe the bug

When i'm using yarn 4.6.0 with TS 5.6+ and project references, I'm having this error:

.pnp.cjs(223414,7): error TS2527: The inferred type of 'FakeFS' references an inaccessible 'this' type. A type annotation is necessary.

Would it be possible to add a @ts-expect-error / @ts-ignore just before the FakeFS class definition? (like what we have in a few other types?)

To reproduce

I don't have any way of reproducing it sorry :/

Environment

System:
    OS: macOS 15.3
    CPU: (10) arm64 Apple M1 Max
  Binaries:
    Node: 20.15.1 - /private/var/folders/4x/njndj3qs3xl4q1my615mt_jh0000gq/T/xfs-c9175b01/node
    Yarn: 4.6.0 - /private/var/folders/4x/njndj3qs3xl4q1my615mt_jh0000gq/T/xfs-c9175b01/yarn
    npm: 10.7.0 - ~/.volta/tools/image/node/20.15.1/bin/npm
    bun: 1.1.45 - /opt/homebrew/bin/bun

Additional context

No response

@Ayc0 Ayc0 added the bug Something isn't working label Feb 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant