0

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?

Gordon
  • 31
  • 4

1 Answers1

0

Your client side browser does not recognize require. You have quite a few options. Please see this earlier post to make your choice:

Client on node: Uncaught ReferenceError: require is not defined

Community
  • 1
  • 1
elimcjah
  • 111
  • 1
  • 6