Open angela318 opened 3 months ago
I get something similar:
Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.
And when trying to fetcher the player/file like the example in the readme with youtube
I need to do
import ReactPlayer from 'react-player/file.js'
@angela318 if in the last two weeks you found a work around could you please keep me in touch? š
thanks in advance
I get something similar:
Warning: React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: object.
And when trying to fetcher the player/file like the example in the readme with youtube
I need to do
import ReactPlayer from 'react-player/file.js'
@angela318 if in the last two weeks you found a work around could you please keep me in touch? š
thanks in advance
I haven't found any workaround and am currently using the video tag directly Reference: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/video
Current Behavior
I tried to import ReactPlayer to my react rails app. I added the line below:
import ReactPlayer from 'react-player'
and the page cannot be loaded. I saw the error below in console:It fails at this line:
module.exports = __toCommonJS(utils_exports);
Expected Behavior
I want to use ReactPlayer to play a video but it fails at importing
Steps to Reproduce
I just add the line below into my app and the page error out:
import ReactPlayer from 'react-player'
Environment
Other Information
node version: v14.21.3 yarn version: v1.22.19
babel.config.js:
webpack.config
I don't see anyone facing the same issue, I guess it might not be related to the package. But I don't know how to debug and proceed. Please help, thanks