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
web3.min.js:1:636
<anonymous> https://cdn.jsdelivr.net/gh/ethereum/web3.js/dist/web3.min.js:1
ReferenceError: Web3 is not defined
I am using the following code
<script src="https://cdn.jsdelivr.net/gh/ethereum/web3.js/dist/web3.min.js"></script>