-
-
Notifications
You must be signed in to change notification settings - Fork 9.4k
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
[Bug]: Failed to resolve entry for package "fs" #23557
Comments
I've found the problem. The current solution is to add a |
For anyone who found this thread, in our project we fix this problem by:
|
I had a similar problem but ended up solving it a little different. In my Turborepo, I have a Storybook app that is an Expo/RN app. When running natively, I would run into issues from the I'm also using NPM Workspaces so hoisting wasn't an option. I added this to my config.resolver.extraNodeModules = {
fs: path.resolve(projectRoot, 'mocks/fs.js'),
path: path.resolve(projectRoot, 'mocks/path.js'),
}; |
Describe the bug
I have a monorepo with yarn 1.22.19 and managed by turborepo.
I suddenly started to get the
Failed to resolve entry for package "fs"
error in dev and when I try to build the storybook (also the same error when building on Vercel).I've tried removing
node_modules
andyarn.lock
, and install it clean, didn't help.To Reproduce
I tried to reproduce it on StackBlitz with no luck.
System
Additional context
On dev, this is the trace that I have:
On build, this is the trace that I have:
package.json:
The text was updated successfully, but these errors were encountered: