Skip to content

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

@jmiranda

Description

@jmiranda

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
react-icons/react-icons#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.

Metadata

Metadata

Assignees

No one assigned

    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