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

web3.min.js: ReferenceError: regeneratorRuntime is not defined (v1.2.1) #3058

Closed
kingjerod opened this issue Sep 5, 2019 · 2 comments
Closed
Assignees
Labels
1.x 1.0 related issues Bug Addressing a bug

Comments

@kingjerod
Copy link

kingjerod commented Sep 5, 2019

Description

Including dist/web3.min.js on a page causes error in console ReferenceError: regeneratorRuntime is not defined. This is the downloaded source from releases.

Expected behavior

There will be no errors when including the file.

Actual behavior

Error shows up in console ReferenceError: regeneratorRuntime is not defined. Web3 does not work.

Steps to reproduce the behavior

Create html file. Put this script tag in:
<script type="text/javascript" src="web3.min.js"></script>

Error Logs

ReferenceError: regeneratorRuntime is not defined

Gists

None

Versions

  • web3.js: 1.2.1
  • browser: Firefox 68.0.2

Note: I do not get this error in 1.2.0

@nivida nivida added 1.x 1.0 related issues Bug Addressing a bug labels Sep 5, 2019
@nivida
Copy link
Contributor

nivida commented Sep 5, 2019

Thanks for opening this issue! Downloading of the published package from NPM and bundling it with webpack does work. I will update the dist file here on GitHub asap.

Edit:
The error is coming from the buffer dependency.

@ItalyPaleAle
Copy link

ItalyPaleAle commented Nov 8, 2019

I have this issue on 1.2.2 downloaded from NPM and bundled with webpack. I didn't have the issue with 1.2.1.

The error appears when web3.js receives a confirmation of a transaction.

Regression?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
1.x 1.0 related issues Bug Addressing a bug
Projects
None yet
Development

No branches or pull requests

4 participants