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?]: unable to use different typescript versions for sdk in monorepo with yarn PnP #6557

Open
1 task
WoodenPC opened this issue Oct 15, 2024 · 3 comments
Open
1 task
Labels
bug Something isn't working

Comments

@WoodenPC
Copy link

Self-service

  • I'd be willing to implement a fix

Describe the bug

Hi, i have monorepo, and trying to switch from node_modules linker to pnp. I read migration guide and use yarn dlx @yarnpkg/sdks vscode. However, packages in my monorepo have different typescript versions and i cannot specify that typescript versions in vs code IDE. It sees only root package.json typescript version. How can I achieve what I wrote about ?

To reproduce

Environment

System: OS windows 10, node 18.18.2

Additional context

No response

@WoodenPC WoodenPC added the bug Something isn't working label Oct 15, 2024
@clemyan
Copy link
Member

clemyan commented Oct 16, 2024

VSCode can only use one TS version per window. See microsoft/vscode#81205

So even if we can generate multiple SDKs for different versions of TypeScript, you can only pick one for VSCode to use

Not sure about if other IDEs can use multiple TS versions

@WoodenPC
Copy link
Author

@clemyan is there an example of how to generate how to generate multiple sdk for workspaces ? Or this feature does not exist yet ?

@clemyan
Copy link
Member

clemyan commented Oct 21, 2024

Not supported directly at the moment.

If you really need you can do that manually -- save the SDK, change the root dependency, and re-generate.

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

2 participants