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

Node JS issue: ReferenceError: atob is not defined #33

Closed
RickCarlino opened this issue May 3, 2017 · 4 comments
Closed

Node JS issue: ReferenceError: atob is not defined #33

RickCarlino opened this issue May 3, 2017 · 4 comments

Comments

@RickCarlino
Copy link
Contributor

Problem:

Running in a Node environment creates the following error:

ReferenceError: atob is not defined
    at Farmbot._decodeThatToken

Fix

npm install atob --save

then before loading farmbot-js:

global.atob = require("atob");
@icerove
Copy link

icerove commented Jan 27, 2020

not working

@RickCarlino
Copy link
Contributor Author

@icerove Please provide more information.

  • What version of node are you running? (node --version)
  • What error message did you see (if any) when running npm install atob --save
  • What error do you see at runtime?
  • What does your code look like?

@WathikAhmed
Copy link

Where exactly do you put this line:

global.atob = require("atob");

@WathikAhmed
Copy link

Im looking to make a youtube video to make following the steps easier, could you help me with getting the farmbot js working, where can I contact you?

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

3 participants