react-docgen icon indicating copy to clipboard operation
react-docgen copied to clipboard

Webpack problem with fs module

Open guoyunhe opened this issue 6 years ago • 2 comments

For webpack project, using the react-docgen cause compiling errors because fs is not available in browser environment. I have to add:

{
  node: {
    fs: 'empty'
  }
}

guoyunhe avatar May 20 '19 10:05 guoyunhe

Thanks for reporting. I will need to investigate, as we do not use "fs" directly in react-docgen and babel should correctly mock it away already. Anyway I will check.

danez avatar May 22 '19 08:05 danez

We are also seeing this error. It appear it could be linked to this issue: https://github.com/thlorenz/convert-source-map/issues/64

emilyrohrbough avatar Jun 13 '19 14:06 emilyrohrbough