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

Can we modify jsonpath to work with React-Native #119

Open
Anubhav-v opened this issue Jan 31, 2019 · 4 comments
Open

Can we modify jsonpath to work with React-Native #119

Anubhav-v opened this issue Jan 31, 2019 · 4 comments

Comments

@Anubhav-v
Copy link

Unable to use jsonpath in react-native environment because of dependency on fs. Is it possible to remove this dependency?

@coolguy001tv
Copy link

Not only fs, but also some node lib.
I am facing the error

error: bundling failed: Error: Unable to resolve module `assert` from `......\node_modules\jsonpath\lib\index.js`: Module `assert` does not exist in the Haste module map

@realityking
Copy link

If #94 were to be merged it would either fix this or at least come close to fixing this.

@Anubhav-v
Copy link
Author

Thanks!
Workaround for now - use the standalone jsonpath.min.js directly as a module inside the react-native project.
Hope this usage doesn't violate any assumptions!

@coolguy001tv
Copy link

For me , I haven't started using this lib yet, so I just give up, LOL.
But still thanks for your workaround. @Anubhav-v

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