I am trying to connect and interact with a local blockchain (using ganache-cli) through the web3js library. I have created a local website that uses web3js library but I keep getting the following error message in my browser console when I try to load the web page.
ReferenceError: require is not defined
ReferenceError: Web3 is not defined
I am using the following code