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

Pure React implementation issues #50

Open
klappy opened this issue Feb 13, 2022 · 1 comment
Open

Pure React implementation issues #50

klappy opened this issue Feb 13, 2022 · 1 comment

Comments

@klappy
Copy link

klappy commented Feb 13, 2022

I'm implementing a pure front end usage and keep coming into polyfill errors.

Since this was intended to be used server side, I understand the usage of Node.js server side npm packages. However, I have been able to polyfill a few dependencies in my package.json via npm aliases:

    "crypto": "npm:crypto-browserify",
    "stream": "npm:stream-browserify",

I've gotten past those errors but now trying to figure out how to get past all of the stream_readable usages of buffer.

Any ideas or tips?

@klappy
Copy link
Author

klappy commented Feb 13, 2022

const crypto = require('crypto');

This appears to be imported but I can't find it being used. I wonder if the issues could be resolved by removing this line? If not, where is it being used?

I plan to fork this library and test it without the import of crypto in the file and package.json. And if it’s needed try the browserify version.

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

1 participant