Skip to content

Importing a package from @primer/react/drafts on CodeSandbox errors out #2453

Description

@broccolinisoup

Description

When importing a component from @primer/react/drafts on CodeSandbox throws an error Could not find module relative to ... and this errors goes back to 35.4.0 with the drafts entrypoint.

a screenshot that shows the error: Could not find module relative to

Sample CodeSandbox to replicate the issue: https://codesandbox.io/s/weathered-frog-9ij4di

Confirming that draft bundles works as expected on react apps and Replit. Looks like it is a CodeSandbox issue so far.

Steps to reproduce

  1. Open a CodeSandbox project. This can be used as an example.
  2. Make sure to install @primer/react latest version.
  3. Import a draft component ( I.e UnderlineNav ) on your application.

You should be able to see the import error.

Version

^35.4.0

Browser

No response

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions