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

import error po2json #48

Closed
aaeronn opened this issue May 18, 2016 · 2 comments
Closed

import error po2json #48

aaeronn opened this issue May 18, 2016 · 2 comments

Comments

@aaeronn
Copy link

aaeronn commented May 18, 2016

I am using react and webpack.
I am trying to import po2json like:

var po2json = require('po2json')

but it is giving me error like:

ERROR in ./~/po2json/lib/parseFile.js
Module not found: Error: Cannot resolve module 'fs' in /home/anonymous/project/node_modules/po2json/lib

Why I am getting this error ?

But no error on importing Jed

var Jed = require('jed')

@mikeedwards
Copy link
Owner

Hmm, interesting. Check out this comment from another module. It may be the same problem between webpack and fs for browser builds:

pugjs/pug-loader#8 (comment)

@mikeedwards
Copy link
Owner

Are you still having trouble with this? If not, I'll close the ticket.

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

2 participants