Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't resolve fs when running npm run storybook #6711

Closed
npattarone opened this issue May 3, 2019 · 6 comments
Closed

Can't resolve fs when running npm run storybook #6711

npattarone opened this issue May 3, 2019 · 6 comments

Comments

@npattarone
Copy link

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"
@npattarone
Copy link
Author

Sorry, was a local mistake in other file

@shilman shilman added this to the 5.0.x milestone May 5, 2019
@Waseemrajashaik
Copy link

@npattarone what was the mistake you made ?

@jasonwr
Copy link

jasonwr commented Sep 9, 2020

Sorry, was a local mistake in other file

How did you resolve this?

@adelin-b
Copy link

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

For fs !

@shilman
Copy link
Member

shilman commented Oct 24, 2020

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

@vishal213
Copy link

vishal213 commented Feb 13, 2021

The problem was entirely elsewhere in my case. My IDE mistakenly added one of the import statements from some library and that caused the problem. Removed that and the actual error cropped up: was also using an undeclared variable in that file only.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants