Closed jkmuka closed 4 years ago
changed import statement to remove {} around ReactAudioPlayer
import ReactAudioPlayer from "react-audio-player";
Tried to import as
import ReactAudioPlayer from 'react-audio-player';
and import * as ReactAudioPlayer from 'react-audio-player';
But has the same error: Element type is invalid: expected a string
Getting this error when added to CRA, using react and react-dom v17.0
Error: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.