Open StasSpawn opened 2 hours ago
1) npx create-react-app my-app 2) npm install mediainfo.js 3) Add app.js from https://github.com/buzz/mediainfo.js/blob/main/examples/webpack-react/src/App.tsx 4) Remove TS things (using simple js)
And export 'MediaInfo' (imported as 'MediaInfo') was not found in 'mediainfo.js' (possible exports: default, isTrackType, mediaInfoFactory) error appeared.
Fix this error by removing MediaInfo from useRef(MediaInfo)
But now new errors after adding video to input
1) npx create-react-app my-app 2) npm install mediainfo.js 3) Add app.js from https://github.com/buzz/mediainfo.js/blob/main/examples/webpack-react/src/App.tsx 4) Remove TS things (using simple js)
And export 'MediaInfo' (imported as 'MediaInfo') was not found in 'mediainfo.js' (possible exports: default, isTrackType, mediaInfoFactory) error appeared.