You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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'
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";
The text was updated successfully, but these errors were encountered: