I have a react-create-app project that links a proprietary library in my public index.html that lets me use a variable called "SingularPlayer".
<script src="https://www.something.com/libs/singularplayer.js"></script>
for example I'm supposed to be able to:
const previewObj = SingularPlayer(iframeId);
But I can't because I keep getting this error:
Line 67: 'SingularPlayer' is not defined no-undef
I've tried putting these in my package.json but these didn't work either:
"rules": {
"no-undef": 0
},
"globals": {
"SingularPlayer": false
},
"env": {
"SingularPlayer": true
}
EDIT: my project won't let me run (npm start) until I fix the error unfortunately