Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

Uncaught ReferenceError: require is not defined (client side js)

$
0
0

Im trying to create a youtube plugin (source code: https://github.com/abhishek-jha-24/EXTENSION)The main javascript code is in content_scripts.js file and from that file i want to access a script1.py file which will give me some data and to access that .py file i've used this tutorial https://medium.com/swlh/run-python-script-from-node-js-and-send-data-to-browser-15677fcf199f

However when i add my extension to chrome it gives me this err:

Uncaught ReferenceError: require is not defined

and now i got to know that we cannot use require in client side JavaScript, but without require how would i access the spawn module from NodeJS which is giving me access to my python file.


Viewing all articles
Browse latest Browse all 3831

Trending Articles



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