question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't resolve fs when running npm run storybook

See original GitHub issue

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”

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

10reactions
Waseemrajashaikcommented, Jun 11, 2019

@npattarone what was the mistake you made ?

4reactions
adelin-bcommented, Oct 24, 2020

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

For fs !

Read more comments on GitHub >

github_iconTop Results From Across the Web

Storybook couldn't resolve fs - Stack Overflow
Depending on the webpack version you are using to build your Storybook you need to add fs , stream and other Node core...
Read more >
Webpack - Storybook
Storybook is a frontend workshop for building UI components and pages in isolation. Thousands of teams use it for UI development, testing, and...
Read more >
Module not found: Can't resolve 'fs' error [Solved] | bobbyhadz
The error Module not found: Error: Can't resolve 'fs' occurs because there has ... Once you run the npm run eject command, a...
Read more >
How To Solve Module Not Found Can't Resolve 'fs' in Next.js
The Module not found: Can't resolve 'fs' error and similar issues most likely occur when you try to import a module that is...
Read more >
can't resolve 'fs' in vue | The AI Search Engine You Control
git clone https://github.com/adamchenwei/boilerplate-webpack-babel-sass-storybook-vuejs; git checkout broken/start-after-storyshot-setup; npm install && npm run ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found