-
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
How to fix "ReferenceError: btoa is not defined" while running build with Node.js? #3667
Comments
@GregTheGreek I upgraded to the latest release of web3, but still getting the same error. |
This might be an issue with your webpack configuration |
Thanks for the reply.
Update: You may find the project here. |
@cgewecke Any chance you have an idea here? |
|
Expected behavior
The bundle
bundle.js
created with thewebpack
should run without error with the commandnode bundle.js
.Actual behavior
I'm getting the following error:
Steps to reproduce the behavior
$ git clone https://github.com/olisystems/dApp-nodeJS-webpack.git
$ cd dApp-nodeJS-webpack
$ npm install
$ cd app && npm i
$ npm run ganache
$ npm run migrate
$ cd dApp-nodeJS-webpack
$ npm run dev
cd dist && node bundle.js
Environment
Node.js: 12
Web3: 1.2.11
OS: Windows, Ubunut 20.04
The text was updated successfully, but these errors were encountered: