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.
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'spackage.json
. After adding, the build worked when usingnpm install --only=production
for installing dependencies.