smronju / React-Music-Player

HTML5 audio player for react lovers
MIT License
32 stars 13 forks source link

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

Open OscarCanek opened 7 years ago

OscarCanek commented 7 years ago

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 commented 6 years ago

Experiencing the same problem.

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

RowlandOti commented 6 years ago

The same issue!! Any fix soon?

AlwaysConfused9 commented 6 years ago

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'