question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't seem to get the package working and import errors for v5

See original GitHub issue

I’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:closed
  • Created a year ago
  • Reactions:2
  • Comments:14 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
SirVizzycommented, Jun 2, 2022

Is this issue resolved? I am facing the same issue using version 5.0.1. I think there is no new release yet. Or is there any workaround for now

I downgraded back to v4 until they push a new release.

2reactions
realamirhecommented, May 30, 2022

@chintan9 could you republish the package for version 5.0.2

npm build
np publish 5.0.2 --branch master --contents dist
Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found