Javascript Sample Error: Can't find variable: require

  • 5.6K Views
  • Last Post 18 January 2013
  • Topic Is Solved
Benjamin posted this 18 January 2013

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!

Order By: Standard | Newest | Votes
Dmitry Me posted this 18 January 2013

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

  • Liked by
  • Andrey Isaev
Benjamin posted this 18 January 2013

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

Dmitry Me posted this 18 January 2013

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

Close