Skip to content

Conversation

@cagcak
Copy link

@cagcak cagcak commented Oct 16, 2019

Some missing dependencies causes following error while building via storybook scripts:

ERROR in ./node_modules/airbnb-js-shims/target/es2015.js
Module not found: Error: Can't resolve 'es6-shim' in '/home/rinse-react/node_modules/airbnb-js-shims/target'
 @ ./node_modules/airbnb-js-shims/target/es2015.js 3:0-19
 @ ./node_modules/airbnb-js-shims/target/es5.js
 @ ./node_modules/airbnb-js-shims/index.js
 @ ./node_modules/@storybook/core/dist/server/common/polyfills.js
 @ multi ./node_modules/@storybook/core/dist/server/common/polyfills.js ./node_modules/@storybook/core/dist/server/preview/globals.js ./.storybook/config.js (webpack)-hot-middleware/client.js?reload=true
ERROR in ./node_modules/airbnb-js-shims/target/es2015.js
Module not found: Error: Can't resolve 'es6-shim' in '/home/rinse-react/node_modules/airbnb-js-shims/target'
 @ ./node_modules/airbnb-js-shims/target/es2015.js 3:0-19
 @ ./node_modules/airbnb-js-shims/target/es5.js
 @ ./node_modules/airbnb-js-shims/index.js
 @ ./node_modules/@storybook/core/dist/server/common/polyfills.js
 @ multi ./node_modules/@storybook/core/dist/server/common/polyfills.js ./node_modules/@storybook/core/dist/server/preview/globals.js ./.storybook/config.js (webpack)-hot-middleware/client.js?reload=true

Adding es6-shim node package for both using by npm and yarn, resolves issue.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant