openboxes-docker icon indicating copy to clipboard operation
openboxes-docker copied to clipboard

Module not found: Error: Can't resolve 'react-icons/all' in '/app/src/js/components/infoBar'

Open jmiranda opened this issue 11 months ago • 0 comments

While testing #17 with a newly cloned repository I was able to see the errors being output by the npm run bundle command.

I've attached the full log file openboxes-docker-grails-1.log

A lot of the errors are of the form

ERROR in ./src/js/components/infoBar/InfoBar.jsx
Module not found: Error: Can't resolve 'react-icons/all' in '/app/src/js/components/infoBar'
 @ ./src/js/components/infoBar/InfoBar.jsx 3:0-46 25:40-51
 @ ./src/js/components/Layout/Header.jsx
 @ ./src/js/components/Layout/MainLayout.jsx
 @ ./src/js/components/Layout/MainLayoutRoute.jsx
 @ ./src/js/components/Router.jsx
 @ ./src/js/MainRouter.jsx
 @ ./src/js/index.jsx

which is either a bug with the react-icons package https://github.com/react-icons/react-icons/issues/740

or makes me suspect that I need to run npm install manually before running

docker-compose up

But why?

Manually running npm install in the openboxes repository resolved the issue. But this shouldn't be necessary.

jmiranda avatar Feb 28 '24 05:02 jmiranda