Javascript Sample Error: Can't find variable: require Answered

I'm trying to use the sample javascript project but I just can't get it to work... But I don't see why. It gives me the error 'Can't find variable: require' - test.js line 79' But there is nothing wrong with the require. Some help here would be greatly appreciated!

Was this article helpful?

0 out of 0 found this helpful

Comments

3 comments

  • Avatar
    Dmitry Mesheryakov

    That code is meant to be run on the server side inside node.js. You likely try to run it on client side.

    1
  • Avatar
    Benjamin

    Wow, can't believe I missed that. Thank you for the swift response!

    0
  • Avatar
    Dmitry Mesheryakov

    You're welcome. We've updated the source on Github to explicitly check it's being run under node.js

    0

Please sign in to leave a comment.