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

Auto imports don't work on monorepos when using yarn pnp #282

Open
Arthur944 opened this issue Jul 10, 2024 · 3 comments
Open

Auto imports don't work on monorepos when using yarn pnp #282

Arthur944 opened this issue Jul 10, 2024 · 3 comments

Comments

@Arthur944
Copy link

Arthur944 commented Jul 10, 2024

Problem: When using a monorepo with yarn pnp, the auto import code action never lists options for other packages within the monorepo.

Here's a rerpoduction repository: https://github.com/Arthur944/typescript-tools-repro

(This happened on an M3 Macbook)

@Arthur944
Copy link
Author

Never mind, I just needed an "include": ["src", "../common/src"] in my packages/frontend/tsconfig.json

@Arthur944
Copy link
Author

Actually, my original reproduction was incorrect, but the issue does exist. The current state of the reproduction repository shows the auto imports not working, and the branch "working-with-bun" shows the same code, just with yarn replaced with bun. On that branch auto imports work correctly.

@Arthur944 Arthur944 reopened this Jul 10, 2024
@Arthur944
Copy link
Author

Looks like it might be an issue in yarn itself yarnpkg/berry#3999

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

No branches or pull requests

1 participant