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

In monorepo (pnpm workspace), imported package loads no tsconfig.json #696

Open
5 of 6 tasks
Menci opened this issue Feb 1, 2025 · 0 comments
Open
5 of 6 tasks
Labels
bug Something isn't working pending triage

Comments

@Menci
Copy link

Menci commented Feb 1, 2025

Acknowledgements

  • I read the documentation and searched existing issues to avoid duplicates
  • I understand this is a bug tracker and anything other than a proven bug will be closed
  • I understand this is a free project and relies on community contributions
  • I read and understood the Contribution guide

Minimal reproduction URL

https://stackblitz.com/edit/node-9cu3uzs2?file=packages%2Fa%2Fsrc%2Findex.tsx

Problem & expected behavior (under 200 words)

In packages/a run pnpm dev.

Expected behavior: prints two { type: "div", ... } objects.
Actual behavior: prints one and then throws "React is not defined" in imported package.

I guess tsx isn't using any of the tsconfig.json files and using the default config for TypsScript when transforming.

Bugs are expected to be fixed by those affected by it

  • I'm interested in working on this issue

Compensating engineering work will speed up resolution and support the project

  • I'm willing to offer $10 for financial support
@Menci Menci added bug Something isn't working pending triage labels Feb 1, 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 pending triage
Projects
None yet
Development

No branches or pull requests

1 participant