Closed as not planned
Description
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.
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
- Open a CodeSandbox project. This can be used as an example.
- Make sure to install @primer/react latest version.
- 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