Quantcast
Channel: MediaSPIP
Viewing all articles
Browse latest Browse all 117737

Can not use the jsmpeg in react "Unexpected use of 'self'"

$
0
0

code that i want to convert in React


 
 

 
 

Can not change it to react format.When i try to convert it is giving jsmpeg error i.e

code that i tried but get an error

import React from 'react';
import ReactDOM from 'react-dom';
import "./jsmpeg.min.js"
const App =()=>{
 return(
 

Hello

) } ReactDOM.render(,document.getElementById('root'));

Error

/src/jsmpeg.min.js Line 606:9: Unexpected use of 'self' no-restricted-globals Line 2771:13: Expected an assignment or function call and instead saw an expression no-unused-expressions

Search for the keywords to learn more about each error.


Viewing all articles
Browse latest Browse all 117737

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>