Skip to content
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

Need help #2

Open
gogsard opened this issue Jul 26, 2021 · 1 comment
Open

Need help #2

gogsard opened this issue Jul 26, 2021 · 1 comment

Comments

@gogsard
Copy link

gogsard commented Jul 26, 2021

Hello, im new to all this. I launch your code on a local webserver and getting error below. Im using the npm http-server.

Uncaught ReferenceError: Web3 is not defined
at HTMLDocument. (faucet.js:117)
at j (jquery-3.2.1.min.js:2)
at k (jquery-3.2.1.min.js:2)

@seaona
Copy link

seaona commented Jun 30, 2022

@gogsard I got the same problem. My approach was to include Web3 via CDN on the index.html file, inside the head section before importing faucet.js:

<script src="https://cdn.jsdelivr.net/npm/web3@latest/dist/web3.min.js"></script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants