react-player icon indicating copy to clipboard operation
react-player copied to clipboard

fix: breaking update v2.11.1

Open glpecile opened this issue 3 years ago • 27 comments

Current Behavior

Project doesn't compile.

Expected Behavior

To compile correctly.

Steps to Reproduce

  1. Compile with version 2.11.1
  2. Boom

Other Information

Trace:

./node_modules/react-player/es6/ReactPlayer.jsx
--
19:45:31.464 | Module parse failed: Unexpected token (140:8)
19:45:31.464 | You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
19:45:31.464 | \|       const { light, playIcon, previewTabIndex, oEmbedUrl } = this.props
19:45:31.464 | \|       return (
19:45:31.464 | >         <Preview
19:45:31.464 | \|           url={url}
19:45:31.464 | \|           light={light}
19:45:31.464 |  
19:45:31.464 | Import trace for requested module:
19:45:31.464 | ./node_modules/react-player/es6/ReactPlayer.jsx
19:45:31.464 | ./node_modules/react-player/es6/index.js
19:45:31.464 | ./components/chats/FloatingVideoPlayer.tsx
19:45:31.465 | ./components/chats/DisplayFloatingVideoPlayer.tsx
19:45:31.465 |  
19:45:31.465 | ./node_modules/react-player/es6/players/DailyMotion.jsx
19:45:31.465 | Module parse failed: Unexpected token (116:6)
19:45:31.465 | You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
19:45:31.465 | \|     }
19:45:31.465 | \|     return (
19:45:31.465 | >       <div style={style}>
19:45:31.465 | \|         <div ref={this.ref} />
19:45:31.465 | \|       </div>
19:45:31.465 |  
19:45:31.466 | Import trace for requested module:
19:45:31.466 | ./node_modules/react-player/es6/players/DailyMotion.jsx
19:45:31.466 | ./node_modules/react-player/es6/players/index.js
19:45:31.466 | ./node_modules/react-player/es6/index.js
19:45:31.466 | ./components/chats/FloatingVideoPlayer.tsx
19:45:31.466 | ./components/chats/DisplayFloatingVideoPlayer.tsx
19:45:31.466 |  
19:45:31.466 | ./node_modules/react-player/es6/players/Facebook.jsx
19:45:31.466 | Module parse failed: Unexpected token (109:6)
19:45:31.466 | You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
19:45:31.467 | \|     }
19:45:31.467 | \|     return (
19:45:31.467 | >       <div
19:45:31.467 | \|         style={style}
19:45:31.467 | \|         id={this.playerID}

glpecile avatar Feb 08 '23 23:02 glpecile

Same error here

ralcant avatar Feb 08 '23 23:02 ralcant

same

tandrasi avatar Feb 09 '23 00:02 tandrasi

Same here

Lornz- avatar Feb 09 '23 00:02 Lornz-

Same for me, the app wouldn't compile, but the error was related to not being able to find a DailyMotion dependency

jordanhudgens avatar Feb 09 '23 01:02 jordanhudgens

same here you may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders | | export default class Kaltura extends Component {

static displayName = 'Kaltura' | static canPlay = canPlay.kaltura | callPlayer = callPlayer

minhvuong37 avatar Feb 09 '23 02:02 minhvuong37

I know this isn't ideal but I just rolled it back in package.json from ^2.11.0 to 2.11.0 and it works

ralcant avatar Feb 09 '23 03:02 ralcant

@ralcant that's what I did as well to get it working

jordanhudgens avatar Feb 09 '23 03:02 jordanhudgens

same image

maolaoban avatar Feb 09 '23 05:02 maolaoban

Stream Chat React using this Library, So I can't lower the version. It seems they are using the latest version.

muhammedogz avatar Feb 09 '23 06:02 muhammedogz

same here, found a workaround using resolutions in yarn. This may help if some other library of yours is using this library, in other words this is the dependency of a dependency. https://classic.yarnpkg.com/lang/en/docs/selective-version-resolutions/

peterpangpeter avatar Feb 09 '23 06:02 peterpangpeter

If you have a dependency that relias on this dependency, you can solve this with npm overrides. https://docs.npmjs.com/cli/v8/configuring-npm/package-json#overrides

Thanks @peterpangpeter for sharing the yarn solution.

muhammedogz avatar Feb 09 '23 06:02 muhammedogz

same issue, i am facing.

manojsingh7 avatar Feb 09 '23 07:02 manojsingh7

same with ^2.10.1. it happens after i up my webpack to 5

ku997 avatar Feb 09 '23 08:02 ku997

same issue for me :(

matanol avatar Feb 09 '23 08:02 matanol

+1, facing the same issue:

Failed to compile.

./node_modules/react-player/es6/players/Kaltura.jsx 10:21
Module parse failed: Unexpected token (10:21)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders 
| 
| export default class Kaltura extends Component {
>   static displayName = 'Kaltura'
|   static canPlay = canPlay.kaltura
|   callPlayer = callPlayernpm ERR! code ELIFECYCLE
npm ERR! errno 1`

danblacklist avatar Feb 09 '23 12:02 danblacklist

2.11.0 works fine

sheikx1221 avatar Feb 09 '23 14:02 sheikx1221

2.11.0 works!!!!

developergunny avatar Feb 09 '23 15:02 developergunny

Not working for us either. Was thinking it was us...

masudhossain avatar Feb 09 '23 15:02 masudhossain

Not working for us either. Was thinking it was us...

Yes, I understand, I too faced difficulties for over two hours, believing that the error was on our end.

Lalit-Joshi avatar Feb 09 '23 17:02 Lalit-Joshi

I am also facing this issue with v2.9.0 (few days back, it was fine). image

Replacing ^2.9.0 with 2.9.0 in package.json worked.

AkshayKrJha avatar Feb 09 '23 19:02 AkshayKrJha