-
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
Loading web3.min.js in browser fails with "require is not defined" #3256
Comments
Thanks for opening this issue! The minified file here provided in the GitHub repository does work as expected but the published one in the web3 package not. We will publish a new fixed minified file on the next patch release. I apologize for all the trouble you might have. |
v1.2.2 is ok without this error. |
@nivida Where is the minified file? The one in the ZIP archive https://github.com/ethereum/web3.js/releases/tag/v1.2.4 has the same problem. v1.2.2 works for me. |
@nivida Still getting the same error with the file at your link.
|
I've installed
web3@1.2.4
withnpm install
.I copied the file
node_modules/web3/dist/web3.min.js
into my web app.I'm loading the file with:
In the browser console (Chrome 70+), I see this error:
The text was updated successfully, but these errors were encountered: