Process: I run start-storybook -p 9001 -c .storybook in the root of my React component library.
Expected outcome: Storybook runs.
Actual outcome: Error in console:
ERROR in ./node_modules/@storybook/ui/dist/modules/ui/components/stories_panel/stories_tree/tree_decorators.js
Module not found: Error: Can't resolve 'react-icons/lib/io/chevron-right' in 'C:\git\consumer-ux\node_modules\@storybook\ui\dist\modules\ui\components\stories_panel\stories_tree'
@ ./node_modules/@storybook/ui/dist/modules/ui/components/stories_panel/stories_tree/tree_decorators.js 17:20-63
@ ./node_modules/@storybook/ui/dist/modules/ui/components/stories_panel/stories_tree/index.js
@ ./node_modules/@storybook/ui/dist/modules/ui/components/stories_panel/index.js
@ ./node_modules/@storybook/ui/dist/modules/ui/containers/stories_panel.js
@ ./node_modules/@storybook/ui/dist/modules/ui/routes.js
@ ./node_modules/@storybook/ui/dist/modules/ui/index.js
@ ./node_modules/@storybook/ui/dist/index.js
@ ./node_modules/@storybook/core/dist/client/manager/index.js
@ multi ./node_modules/@storybook/react/dist/server/config/polyfills.js ./.storybook/addons.js ./node_modules/@storybook/core/dist/client/manager/index.js
When I check for the react-icons/lib/io/chevron-right file, it indeed does not exist. Storybook has a dependency on react-icons (^2.2.7) and I have tried both v3.1.0 (the most recent) and v2.2.7 versions of react-icons. Neither version has that file that storybook is expecting. The project builds fine, it's when I try starting or building storybook that it has this error.
My question is - why is it looking for this react-icons file that does not exist? Is there an issue with dependency versions?
More details
Unfortunately I can't provide steps to reproduce this issue since it's only happening on my machine. Two coworkers have this same repo on their machines and it runs fine. I tried wiping node_modules, deleting yarn.lock, deleting all global npm packages, reinstalling both node and npm, nuking my repo, rebooting my computer... nothing worked. I also had a coworker nuke her repo and try re-installing packages and running storybook, and hers worked fine.
My package.json looks like this (I replaced proprietary info with --):
Bug or support request summary
Process: I run
start-storybook -p 9001 -c .storybook
in the root of my React component library. Expected outcome: Storybook runs. Actual outcome: Error in console:When I check for the react-icons/lib/io/chevron-right file, it indeed does not exist. Storybook has a dependency on react-icons (^2.2.7) and I have tried both v3.1.0 (the most recent) and v2.2.7 versions of react-icons. Neither version has that file that storybook is expecting. The project builds fine, it's when I try starting or building storybook that it has this error.
My question is - why is it looking for this react-icons file that does not exist? Is there an issue with dependency versions?
More details
Unfortunately I can't provide steps to reproduce this issue since it's only happening on my machine. Two coworkers have this same repo on their machines and it runs fine. I tried wiping node_modules, deleting yarn.lock, deleting all global npm packages, reinstalling both node and npm, nuking my repo, rebooting my computer... nothing worked. I also had a coworker nuke her repo and try re-installing packages and running storybook, and hers worked fine.
My package.json looks like this (I replaced proprietary info with --):
Running
yarn list
results in this:Please specify which version of Storybook and optionally any affected addons that you're running