Closed itsTeknas closed 2 years ago
Hey @itsTeknas
Thank you for opening this issue, I apologize for the delayed response. Is it possible for you to provide more information? We don't believe that we need polyfills so it would be useful to know where the build is failing.
Best, Joyce
@PikaJoyce I have the same issue and there are more details in this thread https://github.com/twilio/twilio-video.js/issues/1242
@itsTeknas you have to install util using "npm i util" and then insert these lines at the bottom of your polyfills.ts
(window as any).process = { env: { DEBUG: undefined }, };
Hey @mgesuitti!
Thanks for linking that issue. I will respond back once I gather some more information with the team on how to proceed forward with this issue! In the meanwhile, I'll keep this thread open and keep it updated.
Regards, Joyce
I believe they have removed some node polyfills in webpack5 that were included by default in webpack4. The webpack config file for angular is in node_modules and editing it should not be considered. Maybe an overriding config in our project and how to set that up in your readme/setup guide will help.
Some links to help you get started https://blog.sindresorhus.com/webpack-5-headache-b6ac24973bf1 https://github.com/webpack/node-libs-browser
I'm sorry, I really don't understand the webpack world well enough to solve it on my own.
Hey everyone,
Small update, we have created an internal ticket to track this issue and investigate further.
Thanks everyone for your patience! Joyce
Also see #1147 and #1429. Having those imports in the first place is what makes it webpack (4) specific.
If the following code is in the library:
shouldn't util
library be a dependency?
Hey everyone,
Small update, we have created an internal ticket to track this issue and investigate further.
Thanks everyone for your patience! Joyce
Hi, any updates regarding this issue?
Folks,
I apologize for the incredibly late response. But I'm here to update this thread with the internal ticket number (VIDEO-6516) that was created to track and investigate this issue further. This issue is currently within our backlog and we're expecting this to be a larger task that will require some time. Again, we appreciate your patience!
Best, Joyce
@PikaJoyce any updates?
Hi @hsavit1,
Thank you for the ping! Currently, there are efforts that address this issue in the works. We hope to have a resolution out sometime in the near future! I will keep this thread updated as progress continues.
Best, Joyce
Hi folks,
Just a quick update here, the latest release 2.21.1 fixes this issue. Please give it a spin and let us know if you're still seeing any issues! I will now be closing this ticket. Please do feel free to open another issue if any new ones occur!
Thank you for all of your patience, Joyce
Code to reproduce the issue:
Expected behavior:
Angular project should compile and work
Actual behavior: ng build
Software versions: