Skip to content

Conversation

oliviertassinari
Copy link
Contributor

I'm trying to use https://github.com/reactjs/react-docgen with webpack.
However I'm getting the following error:

ERROR in ./~/recast/main.js
Module not found: Error: Cannot resolve module 'fs' in /Users/oliviertassinari/material-ui/docs/node_modules/recast
 @ ./~/recast/main.js 18:4-17

This PR aim to fix it, following this PR pugjs/pug#1644

I'm trying to use https://github.com/reactjs/react-docgen with webpack.
However I'm getting the following error:
```
ERROR in ./~/recast/main.js
Module not found: Error: Cannot resolve module 'fs' in /Users/oliviertassinari/material-ui/docs/node_modules/recast
 @ ./~/recast/main.js 18:4-17
```
This PR aim to fix it following this PR pugjs/pug#1644
@oliviertassinari
Copy link
Contributor Author

Thanks! Do you plan to release this change soon?

@benjamn
Copy link
Owner

benjamn commented Dec 7, 2015

Yes, though I'd like to add some tests to make sure this doesn't happen (without warning) again.

@oliviertassinari
Copy link
Contributor Author

Alright, take your time, I have added fs as an external to the webpack config (temporarily workaround).

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.

2 participants