Issue: JavaScript SDK v212 - Build Warning - Module "https" has been externalized for browser compatibility

As of version JS SDK v212, I'm seeing a vite build warning:

[plugin:vite:resolve] [plugin vite:resolve] Module "https" has been externalized for browser compatibility, imported by "readacted/node_modules/purecloud-platform-client-v2/src/purecloud-platform-client-v2/ApiClient.js". See Troubleshooting | Vite for more details.

purecloud-platform-client-v2 212.0.0
vite 6.0.6

I'm not sure if this causes any behavioral issues, or if it's just emitting noise (which is impactful).

Thanks!!

Hello,

Thanks for reporting this. We will try to take a look at it when possible (and I'll update this post).

Just to make sure we understand and can troubleshoot:
Do you mean that your build was ok with previous version of the JS SDK? And that starting with v212, you now have a warning on the https module?

Regards,

To the best of my knowledge, yes, it didn't have the warning for many versions prior.

Ok. We have a fix pending - or let's say attempt to fix this (as I didn't try to reproduce it). I'll let you know when we create a new SDK version. We'll try to issue a minor release in the next days if e can.

1 Like

Hello,

We have a made a change on the 'https' module import in version 212.1.0.
Can you try it and let us know if it resolves your issue?

Regards,

Yes, it's resolved. No longer seeing the warning.

Thank you!

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.