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 resolve path in dom-pixels.js #48

Open
shreyakamoji96 opened this issue Sep 30, 2019 · 2 comments
Open

cannot resolve path in dom-pixels.js #48

shreyakamoji96 opened this issue Sep 30, 2019 · 2 comments

Comments

@shreyakamoji96
Copy link

Unable to resolve module path from /home/shreya/react-native/imagePro/node_modules/get-pixels/dom-pixels.js: Module path does not exist in the Haste module map

@vallegabrielle
Copy link

Same here

@tarkvara
Copy link

The problem seems to be that the project depends on packages which are available by default in node.js, but not in React Native. You can fix these dependency issues with yarn add path stream.

In any case, for React Native, you probably don't want want the dom-pixels.js implementation of getPixels (which requires rendering to an HTML element). Unfortunately, the node-pixels.js version of getPixels requires a module called fs, which is no longer supported.

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