Can't seem to get the package working and import errors for v5
See original GitHub issueI’ve been using the regular Plyr package and have it working. Was gonna give this a try, but I can’t seem to get off the ground here.
Simply trying to import the following according to docs:
import Plyr from 'plyr-react'
import 'plyr-react/dist/plyr.css'
leads to this:
ERROR in ./src/components/main/views/videos/player/VideoPlayer.js 7:0-30
Module not found: Error: Can't resolve 'plyr-react' in [......my pathname......]
ERROR in ./src/components/main/views/videos/player/VideoPlayer.js 8:0-29
Module not found: Error: Package path ./plyr.css is not exported from package ..../node_modules/plyr-react
The packages are installed and present in node modules folder. I feel like this might be some webpack black magic stuff??
Not sure what the deal is - any thoughts or solutions are greatly appreciated!
Also, what is the benefit to using this package, “plyr-react” over the regular “plyr” package? I’m just trying to figure out if continuing with this is worth the extra effort considering I have “plyr” working already.
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:14 (3 by maintainers)
Top Results From Across the Web
Error importing Framer Motion v5 in React (with create-react ...
I downgraded the Framer motion version to "4.1.17" by changing the package.json file and running npm install and it works for me.
Read more >5.0.0 is causing problems in Python 3.7. Can't import celery ...
I can't run the import statement from celery import Celery in Python 3.7 with importlib-metadata 5.0.0 installed. I get:.
Read more >Receiving errors when uploading a shapefile to ArcGIS Online ...
Solution or Workaround · Check for improper packaging. The ZIP file must contain one shapefile. The ZIP file must contain the . ·...
Read more >Can't install packages with renv - RStudio Community
Hi everyone, I'm trying to get started using renv, but I can't seem to install any packages with renv activated. I simply get...
Read more >FBX Import Errors - Unreal Engine Documentation
An asset already exists with the given name. Make sure to use a different name to import or import into a different folder....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I downgraded back to v4 until they push a new release.
@chintan9 could you republish the package for
version 5.0.2