Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Module not found: 'react-music-player' #5

Open
OscarCanek opened this issue Sep 29, 2017 · 3 comments
Open

Module not found: 'react-music-player' #5

OscarCanek opened this issue Sep 29, 2017 · 3 comments

Comments

@OscarCanek
Copy link

OscarCanek commented Sep 29, 2017

I always get the message Module not found: 'react-music-player'.

I only ran:
npm install react-music-player --save

then:
npm start

Finally at my jsx:
import ReactMusicPlayer from "react-music-player";

@gfleetwood
Copy link

gfleetwood commented Mar 18, 2018

Experiencing the same problem.

./src/App.js
Module not found: Can't resolve 'react-music-player' in '/project/src'

@RowlandOti
Copy link

The same issue!! Any fix soon?

@AlwaysConfused9
Copy link

The error comes because the The author of this Component has imported PropTypes from 'react'
which was true for older version of react but prop-types package is now removed from the core react package.
You can get it working by copying the component code by going into node_modules and searching for
react-music-player directory and copying the content of the component and removing the PropTypes
import from react to import PropTypes from 'prop-types'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants