cwlsn / rinse-react

🚿 Rinse, React, repeat. A boilerplate to build a React component library.
https://rinsejs.io/
MIT License
158 stars 43 forks source link

Added missing library depended to storybook polyfills #36

Open cagcak opened 5 years ago

cagcak commented 5 years ago

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.