media-stream-player-js
media-stream-player-js copied to clipboard
Local Start Works but Fails when Deployed.
Describe the bug Locally when I start the implementation of the react multi stream, it works great. However when deployed I see the following error:

To Reproduce I am really at a loss as to how to reproduce this, because this does not happen locally. Everything works great locally, just fails when the site has been deployed.
Environment (please complete the following information):
- OS: macOS Monterey 12.5
- Browser: Microsoft Edge, Chrome, Safari
- Version: Latest
I may add, that I essentially have the exact code seen here https://github.com/AxisCommunications/media-stream-player-js/blob/main/examples/react-app/MultiStream.jsx
I have made sure I have all of the peer dependencies installed per documentation as well.
This appears to be coming from this alias
alias: { stream: 'stream-browserify', }, },
in the vite.config of this project.
It works fine locally but this does not exist once actually deployed to a react site.
Any thoughts on how to avoid using this alias and actually getting something in there that will be consistent from vite to browser