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!

asked 18 Jan '13, 14:50

Benjamin's gravatar image

Benjamin
1313


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

link

answered 18 Jan '13, 15:32

Dmitry%20Me's gravatar image

Dmitry Me ♦♦
2387

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

(18 Jan '13, 15:40) Benjamin

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

(18 Jan '13, 16:25) Dmitry Me ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×59
×28
×9

Asked: 18 Jan '13, 14:50

Seen: 5,410 times

Last updated: 04 Feb '13, 19:16

© 2016 ABBYY. All rights Reserved. www.ABBYY.com | Privacy Policy | Legal