Skip to content

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

Open
@Menci

Description

@Menci

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions