BabyParse
BabyParse copied to clipboard
Fix for fs error when using inside a react component with storybook integrated. Making "fs:empty" has not worked for my case
Fix for "fs" error when using inside a react component with storybook integrated. Making "fs:empty" has not worked for my case
ERROR in ./node_modules/babyparse/babyparse.js Module not found: Error: Can't resolve 'fs' in 'C:\work\git_mehmet\bitek-web-grid\node_modules\babyparse' @ ./node_modules/babyparse/babyparse.js 41:16-29 @ ./src/lib/components/fixeddatatable/fixedtable.js @ ./src/lib/components/fixeddatatable/grid.js @ ./stories/index.js @ ./.storybook/config.js @ multi ./node_modules/@storybook/react/dist/server/config/polyfills.js ./node_modules/@storybook/react/dist/server/config/globals.js ./node_modules/webpack-hot-middleware/client.js?reload=true ./.storybook/config.js
I don't think its BabyParse. I'm getting the same issue with a library called 'graceful-fs'. I think it has something to do with Storybook's default webpack configs. Trying to extend Storybook's webpack defaults just resulted in more errors, so I'm not sure...