Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

styled-components is a devDependency, but is required for production #77

Open
Delph opened this issue Jun 29, 2022 · 0 comments
Open

styled-components is a devDependency, but is required for production #77

Delph opened this issue Jun 29, 2022 · 0 comments

Comments

@Delph
Copy link

Delph commented Jun 29, 2022

Tried creating a deployment for a React project depending on this today, and the production build would fail, with Module not found: Error: Can't resolve 'styled-components' in '/app/node_modules/react-ionicons/lib' until I had added styled-components to my project's package.json. After adding, the build worked when using npm install --only=production for installing dependencies.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant