Thanks to visit codestin.com
Credit goes to github.com

Skip to content

feat(webpack): polyfill Buffer & crypto #9506

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

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

rigor789
Copy link
Member

WIP - provide sane defaults for polyfilling missing modules.

@cla-bot cla-bot bot added the cla: yes label Aug 10, 2021
@lehongwang
Copy link

please help, I have flowed your guide , now got more errors
TypeError: Cannot read property 'env' of undefined

unknown

thank you very much

@rigor789
Copy link
Member Author

I would try config.resolve.alias.set('readable-stream', 'readable-stream/readable-browser.js'):

readable.js uses process.env.READABLE_STREAM which is not defined unless you define it yourself. The above should force using the browser version that doesn't have this check.
image

@lehongwang
Copy link

can anyone guide me to change the webpack.config.js of ns 8.0.8 :(

thank you

@NathanWalker NathanWalker added this to the 8.2 milestone Oct 21, 2021
@rigor789 rigor789 changed the title feat: polyfill Buffer & crypto feat(webpack): polyfill Buffer & crypto Feb 18, 2022
@rigor789 rigor789 marked this pull request as ready for review February 18, 2022 14:58
@NathanWalker NathanWalker removed this from the 8.2 milestone Nov 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants