You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
TypeError: Cannot assign to read only property 'exports' of object '#<Object>'
at Module.<anonymous> (utils.js:126:1)
at ./node_modules/react-player/lib/utils.js (utils.js:368:1)
at __webpack_require__ (index-07d9361752105ff10b68.js:64:30)
at ./node_modules/react-player/lib/players/index.js (index.js:81:1)
at __webpack_require__ (index-07d9361752105ff10b68.js:64:30)
at ./node_modules/react-player/lib/index.js (index.js:81:1)
at __webpack_require__ (index-07d9361752105ff10b68.js:64:30)
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'
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
The text was updated successfully, but these errors were encountered:
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
localhost
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
The text was updated successfully, but these errors were encountered: