Storybook: Can't resolve fs when running npm run storybook

Created on 3 May 2019  路  5Comments  路  Source: storybookjs/storybook

Describe the bug
Out of the blue, the command npm run storybook started to throw this error. Didn't change anything in between, besides changes of some stories of mine.

Expected behavior
Not throw errors of any kind and start the project.

Screenshots
image

image

System:

  • OS: Windows10
  • Device: ASUS
  • Browser: chrome
  • Framework: react
  • Version: "@storybook/react": "^5.0.10"
question / support

Most helpful comment

@npattarone what was the mistake you made ?

All 5 comments

Sorry, was a local mistake in other file

@npattarone what was the mistake you made ?

Sorry, was a local mistake in other file

How did you resolve this?

The pain of finding the same resolved issue im facing but without the resolution

For fs !

Importing a node-specific library in your components or stories perhaps?

Was this page helpful?
0 / 5 - 0 ratings