-
Notifications
You must be signed in to change notification settings - Fork 5
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 'child_process' in username-sync #3
Comments
Found workaround.
|
This post actually has simpler solution Add this to .storybook/main.js
|
This was referenced Apr 16, 2020
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hello, I'am trying to add storybook-cli to my project, and try to run it (
yarn storybook
).But I keep hitting this error:
ERROR in ./node_modules/username-sync/index.js Module not found: Error: Can't resolve 'child_process' in '/Users/my-name/my-workspace/my-project-name/node_modules/username-sync' @ ./node_modules/username-sync/index.js 4:15-39 34:19-43 44:11-35 @ ./node_modules/async-disk-cache/index.js @ ./node_modules/ember-cli-htmlbars/node_modules/broccoli-persistent-filter/lib/strategies/persistent.js @ ./node_modules/ember-cli-htmlbars/node_modules/broccoli-persistent-filter/index.js @ ./node_modules/ember-cli-htmlbars/index.js @ ./stories/1-Button.stories.js @ ./stories sync ^\.\/(?:(?:(?!\.)(?:(?:(?!(?:|\/)\.).)*?)\/)?(?!\.)(?=.)[^/]*?\.stories\.js\/?)$ @ ./.storybook/generated-entry.js @ multi ./node_modules/@storybook/core/dist/server/common/polyfills.js ./node_modules/@storybook/core/dist/server/preview/globals.js ./.storybook/generated-entry.js (webpack)-hot-middleware/client.js?reload=true&quiet=true
I tried adding
browser: 'empty'
orbrowser: false
to package.json, without any luck.Any advice appreciated.
The text was updated successfully, but these errors were encountered: