react-ionicons icon indicating copy to clipboard operation
react-ionicons copied to clipboard

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

Open Delph opened this issue 3 years ago • 0 comments

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.

Delph avatar Jun 29 '22 10:06 Delph