fix: breaking update v2.11.1
Current Behavior
Project doesn't compile.
Expected Behavior
To compile correctly.
Steps to Reproduce
- Compile with version
2.11.1 - 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}
Same error here
same
Same here
Same for me, the app wouldn't compile, but the error was related to not being able to find a DailyMotion dependency
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
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 that's what I did as well to get it working
same

Stream Chat React using this Library, So I can't lower the version. It seems they are using the latest version.
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/
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.
same issue, i am facing.
same with ^2.10.1. it happens after i up my webpack to 5
same issue for me :(
+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`
2.11.0 works fine
2.11.0 works!!!!
Not working for us either. Was thinking it was us...
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.
I am also facing this issue with v2.9.0 (few days back, it was fine).

Replacing ^2.9.0 with 2.9.0 in package.json worked.