I have been trying to use snoop wrap with javascript to be able to call the reddit api, and I continously get an error here:
const snoowrap = require('snoowrap');
The error says:
Uncaught ReferenceError: require is not defined
I have found multiple different answers where they use browserify, but I have tried that too, to no avail. Can someone please give me a straight answer about what I have to do to solve this error?