Skip to content

Projects which depend on typebox cannot be transpiled #8833

@kade-robertson

Description

@kade-robertson

🐛 bug report

Preflight Checklist

  • I have read the Contributing Guidelines for this project.
  • I agree to follow the Code of Conduct that this project
    adheres to.
  • I have searched the issue tracker for an issue that matches the one I want
    to file, without success.

Description of the problem

Projects which depend on typebox fail to compile and display the application when run in the Codesandbox client, but work as expected if you run the same project locally.

On codesandbox:

Image

Locally, after downloading the project and running:

Image

How has this issue affected you? What are you trying to accomplish?

Use a library which depends on data validation via typebox.

To Reproduce

  1. Create a new project using the default Typescript template
  2. Specify the latest parcel (2.16.1) and Typescript (5.9.3) versions in package.json.
  3. Add typebox as a dependency
  4. Use some Typebox code in the default index.ts
  5. Observe the above issue

Link to sandbox: link

I seem to be able to reproduce this issue using the old, deprecated version of the Parcel v1 bundler that is in the default template locally. Presumably this means this was an issue fixed in v2, but that change has not been adopted in whatever Codesandbox is doing to bundle packages.

Your Environment

Software Name/Version
Сodesandbox main-00f2e83
Browser 142.0.7444.162
Operating System MacOS Tahoe 26.1 (25B78)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions