Skip to content

ModuleNotFoundError in clean create-react-app #1863

@chadfawcett

Description

@chadfawcett

Describe the bug
I wanted to try to simplify and reproduce an issue I'm having in a project, so thought I'd throw together a codesandbox with a minimal setup to reproduce. However, I can't even use @primer/react within codesandbox from the looks of it.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new React codesandbox (basic create-react-app)
  2. Add @primer/react and styled-components as dependencies
  3. Try to import ThemeProvider
  4. See error

https://codesandbox.io/s/priceless-knuth-qkiq9?file=/src/App.js

Expected behavior
I expected to be able to import ThemeProvider within a create-react-app project without error.

Screenshots
Screen Shot 2022-02-11 at 3 33 47 PM

Desktop (please complete the following information):

  • OS: MacOS BigSur
  • Browser: Chrome
  • Version: Version 98.0.4758.80

Metadata

Metadata

Assignees

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