Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot use on React #707

Open
begonia666 opened this issue Jun 20, 2022 · 1 comment
Open

Cannot use on React #707

begonia666 opened this issue Jun 20, 2022 · 1 comment
Labels
bug Something isn't working player Related to player (media-stream-player-js package)

Comments

@begonia666
Copy link

begonia666 commented Jun 20, 2022

Describe the bug
I am using node v14 and react version is 16.13.0

To Reproduce
I installed via "yarn"
"media-stream-library": "^11.1.1",
"media-stream-player": "^8.1.1",
"luxon": "^2.4.0",

Steps to reproduce the behavior:

I copy/paste the code from example/react
and edit the alias in react-rewire-app config-override.js file

'media-stream-library': 'media-stream-library/dist/index.browser.d.ts'

if I don't edit the alias, it will throw error "Can't resolve 'media-stream-library' in node_modules/media-stream-player/dist'"

Screenshots
Screen Shot 2022-06-20 at 12 35 25 pm

Environment (please complete the following information):

  • OS: Mac
  • Browser Chrome
  • Version 12.4
@begonia666 begonia666 added the bug Something isn't working label Jun 20, 2022
@georgetsu
Copy link

'media-stream-library': 'media-stream-library/dist/index.browser.d.ts'

Try to replace by this:
'media-stream-library': 'media-stream-library/dist/browser-esm'
As descriped in readme. Its helped for me.

@steabert steabert transferred this issue from AxisCommunications/media-stream-player-js Jan 25, 2023
@steabert steabert added the player Related to player (media-stream-player-js package) label Jan 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working player Related to player (media-stream-player-js package)
Projects
None yet
Development

No branches or pull requests

3 participants