Richard_Honor1 | 2021-06-22 09:15:21 UTC | #1
When trying to run the WebRTC SDK in the browser (Chrome 91) we hit issues where the package was looking for global variables that would only exist in a NodeJS environment (process and Buffer).
To fix this, we added the following to our webpack config:
new webpack.ProvidePlugin({ Buffer: ["buffer", "Buffer"], }), new webpack.DefinePlugin({ process: { browser: true, nextTick: () => null, }, }),
We also needed to install the stanza package.
Is there a better solution for this that doesn't involve polyfilling?
SDK version: 6.0.1
I also created this same issue on your GH repo, not sure the best avenue for reporting these issues: https://github.com/MyPureCloud/genesys-cloud-webrtc-sdk/issues/576
anon78929116 | 2021-06-22 13:33:33 UTC | #2
Will respond on github.
system | 2021-07-22 09:15:23 UTC | #3
This topic was automatically closed after 30 days. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 11275