Skip to content

React 18 and plyr-react #1226

@bradrice

Description

@bradrice

I updated my react app to react 17 and my app is breaking on plyr-react use of plyr. I'm getting all these missing module errors:

Module not found: Error: Can't resolve './captions' in 'C:\Users\brice\source\repos\nextplayer\node_modules\plyr\src\js'
Did you mean 'captions.js'?
BREAKING CHANGE: The request './captions' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
ERROR in ./node_modules/plyr/src/js/plyr.js 9:0-41
Module not found: Error: Can't resolve './config/defaults' in 'C:\Users\brice\source\repos\nextplayer\node_modules\plyr\src\js'
Did you mean 'defaults.js'?
BREAKING CHANGE: The request './config/defaults' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.
ERROR in ./node_modules/plyr/src/js/plyr.js 10:0-38
Module not found: Error: Can't resolve './config/states' in 'C:\Users\brice\source\repos\nextplayer\node_modules\plyr\src\js'
Did you mean 'states.js'?
BREAKING CHANGE: The request './config/states' failed to resolve only because it was resolved as fully specified
(probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
The extension in the request is mandatory for it to be fully specified.
Add the extension to the request.```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions