Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[package] Support webpack #238

Merged
merged 1 commit into from
Dec 5, 2015
Merged

[package] Support webpack #238

merged 1 commit into from
Dec 5, 2015

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