X Tutup
The Wayback Machine - https://web.archive.org/web/20260215021737/https://github.com/NativeScript/NativeScript/pull/9506
Skip to content

feat(webpack): polyfill Buffer & crypto#9506

Open
rigor789 wants to merge 6 commits intomainfrom
feat/webpack5-polyfills
Open

feat(webpack): polyfill Buffer & crypto#9506
rigor789 wants to merge 6 commits intomainfrom
feat/webpack5-polyfills

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
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

X Tutup