infinitered / infinitered/reactotron

Storybook broken in `apps/reactotron-app`

Open
#1,369 2 comments 0 reactions 0 assignees View on GitHub
bug :beetle:
Dominant language
TypeScript
Stars
15.6k
Forks
972
PR merge metrics
No merged PRs in 30d

Description

"Can't resolve 'fs'" -- appears to be trying to load fs in a browser context.

Replicate:

```
yarn
cd apps/reactotron-app
yarn build-storybook
```

Error:

```
ModuleNotFoundError: Module not found: Error: Can't resolve 'fs' in '/Users/jh/Code/infinitered/reactotron/node_modules/electron'
at /Users/jh/Code/infinitered/reactotron/node_modules/webpack/lib/Compilation.js:925:10
```

Contributor guide

Open the contributing guide

Research direction

Run yarn, then yarn build-storybook from apps/reactotron-app to reproduce the browser-side fs resolution error shown through node_modules/electron. Inspect the Storybook build entry points and Electron dependency path, and consider the work complete when the Storybook build succeeds without trying to resolve fs in a browser context.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.