I am using the Twit package to search for tweets. When I run the js file in the console, the tweets appear but I cannot use them on my webpage as it gives me an error 'Uncaught ReferenceError: require is not defined'. This is because require isn't defined on the client side.
Is there any way around this?