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

Cannot use in webpack #77

Closed
okunokentaro opened this issue Aug 15, 2016 · 5 comments
Closed

Cannot use in webpack #77

okunokentaro opened this issue Aug 15, 2016 · 5 comments

Comments

@okunokentaro
Copy link

plist@1.2.0, webpack@1.13.1

ERROR in ./~/plist/lib/node.js
Module not found: Error: Cannot resolve module 'fs' in /node_modules/plist/lib
 @ ./~/plist/lib/node.js 5:9-22

webpack cannot be interpreted require('fs'). I think it should be running with webpack if you say clearly 'Mac OS X Plist parser/builder for Node.js and browsers'.
Could you support with webpack? thanks.

@okunokentaro
Copy link
Author

https://github.com/TooTallNate/plist.js/blob/master/lib/plist.js#L18-L23

I thought that should be release the next major version removing this description. 😃

@mreinstein
Copy link
Collaborator

mreinstein commented Aug 15, 2016

@armorik83 I haven't used webpack, is it possible to shim require('fs') in webpack? If so, it should be possible to use plist.js. Perhaps there is some kind of loader/transform for it?

@TooTallNate
Copy link
Owner

TooTallNate commented Aug 16, 2016

Can you give v2.0.1 a try?

@mreinstein
Copy link
Collaborator

@TooTallNate if we're going to cut a major release it would be nice to also get a solution to this in there too: #75

@okunokentaro
Copy link
Author

Very cool. Thank you👏

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

No branches or pull requests

3 participants