-
Notifications
You must be signed in to change notification settings - Fork 5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught ReferenceError: Web3 is not defined #1233
Comments
Most likely you did not import the web3 library using this : |
|
i have also meet this problem ,who can tell me how to solve it. thanks! |
Hello! I'm trying to create an instance of web3 using the following code in the index.js file:
var web3 = new Web3(new Web3.providers.HttpProvider('http://localhost:8545'));
But have an error:
I have installed Web3 and started the testrpc.
When I execute this code in the node.js terminal , there are no errors.
Why is this happening? Thanks.
The text was updated successfully, but these errors were encountered: