matvp91 / shaka-player-react

A simple React component wrapper for shaka-player
MIT License
110 stars 34 forks source link

Failed to parse source map with React 17.0.2 #24

Open sannjayy opened 2 years ago

sannjayy commented 2 years ago

I'm trying with fresh React Project.

When trying to npm start there, I'm getting this error, please open the screenshot and help me to fix it.

Error Screenshot: https://ibb.co/PhD6Cjr

Error : Failed to parse source map from shaka-player-react\node_modules\shaka-player\ui\https:\fonts.googleapis.com\icon?family=Material+Icons+Round' file: Error: ENOENT: no such file or director

matvp91 commented 2 years ago

Hey @sannjayy,

I started off with a fresh project (npx create-react-app sample) with shaka-player-react@1.1.5and ran the following sample code in App.js.

import ShakaPlayer from "shaka-player-react";
import "shaka-player-react/dist/controls.css";

function App() {
  return (
    <ShakaPlayer
      autoPlay
      src="https://storage.googleapis.com/shaka-demo-assets/angel-one/dash.mpd"
    />
  );
}

export default App;

Would you mind retrying with the latest version?

Thanks!