Meteor and URI class - Reference Error


(Original Founder) #1

I am trying to use the URI class with meteor but get a ReferenceError.

I am on ubuntu 14.04 and Meteor 1.1.0.3

Source code snippet is:
var uriString = new URI({
address: ‘12A1MyfXbW6RhdRAZEqofac5jCQQjwEPBu’,
amount : 10000, // in satoshis
message: ‘My payment request’
});
var uriString = uri.toString();

Here is the output:
cmt@ubuntu:~/projects/pressIt$ meteor
[[[[[ ~/projects/pressIt ]]]]]

=> Started proxy.
=> Started MongoDB.
e[34mW20150822-20:35:59.749(-4)? (STDERR) e[39me[35me[39m
e[34mW20150822-20:35:59.750(-4)? (STDERR) e[39me[35m/home/cmt/.meteor/packages/meteor-tool/.1.1.4.1q76ub5++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245e[39m
e[34mW20150822-20:35:59.750(-4)? (STDERR) e[39me[35m throw(ex);e[39m
e[34mW20150822-20:35:59.750(-4)? (STDERR) e[39me[35m ^e[39m
e[34mW20150822-20:35:59.751(-4)? (STDERR) e[39me[35mReferenceError: URI is not definede[39m
e[34mW20150822-20:35:59.751(-4)? (STDERR) e[39me[35m at app/etherApp/etherApp.js:59:21e[39m
e[34mW20150822-20:35:59.751(-4)? (STDERR) e[39me[35m at app/etherApp/etherApp.js:66:3e[39m
e[34mW20150822-20:35:59.751(-4)? (STDERR) e[39me[35m at /home/cmt/projects/pressIt/.meteor/local/build/programs/server/boot.js:222:10e[39m
e[34mW20150822-20:35:59.751(-4)? (STDERR) e[39me[35m at Array.forEach (native)e[39m
e[34mW20150822-20:35:59.752(-4)? (STDERR) e[39me[35m at Function..each..forEach (/home/cmt/.meteor/packages/meteor-tool/.1.1.4.1q76ub5++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)e[39m
e[34mW20150822-20:35:59.752(-4)? (STDERR) e[39me[35m at /home/cmt/projects/pressIt/.meteor/local/build/programs/server/boot.js:117:5e[39m
=> Exited with code: 8
e[34mW20150822-20:36:03.213(-4)? (STDERR) e[39me[35me[39m
e[34mW20150822-20:36:03.213(-4)? (STDERR) e[39me[35m/home/cmt/.meteor/packages/meteor-tool/.1.1.4.1q76ub5++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245e[39m
e[34mW20150822-20:36:03.213(-4)? (STDERR) e[39me[35m throw(ex);e[39m
e[34mW20150822-20:36:03.213(-4)? (STDERR) e[39me[35m ^e[39m
e[34mW20150822-20:36:03.216(-4)? (STDERR) e[39me[35mReferenceError: URI is not definede[39m
e[34mW20150822-20:36:03.216(-4)? (STDERR) e[39me[35m at app/etherApp/etherApp.js:59:21e[39m
e[34mW20150822-20:36:03.216(-4)? (STDERR) e[39me[35m at app/etherApp/etherApp.js:66:3e[39m
e[34mW20150822-20:36:03.217(-4)? (STDERR) e[39me[35m at /home/cmt/projects/pressIt/.meteor/local/build/programs/server/boot.js:222:10e[39m
e[34mW20150822-20:36:03.217(-4)? (STDERR) e[39me[35m at Array.forEach (native)e[39m
e[34mW20150822-20:36:03.217(-4)? (STDERR) e[39me[35m at Function..each..forEach (/home/cmt/.meteor/packages/meteor-tool/.1.1.4.1q76ub5++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)e[39m
e[34mW20150822-20:36:03.217(-4)? (STDERR) e[39me[35m at /home/cmt/projects/pressIt/.meteor/local/build/programs/server/boot.js:117:5e[39m
=> Exited with code: 8
e[34mW20150822-20:36:06.648(-4)? (STDERR) e[39me[35me[39m
e[34mW20150822-20:36:06.649(-4)? (STDERR) e[39me[35m/home/cmt/.meteor/packages/meteor-tool/.1.1.4.1q76ub5++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/fibers/future.js:245e[39m
e[34mW20150822-20:36:06.649(-4)? (STDERR) e[39me[35m throw(ex);e[39m
e[34mW20150822-20:36:06.649(-4)? (STDERR) e[39me[35m ^e[39m
e[34mW20150822-20:36:06.652(-4)? (STDERR) e[39me[35mReferenceError: URI is not definede[39m
e[34mW20150822-20:36:06.653(-4)? (STDERR) e[39me[35m at app/etherApp/etherApp.js:59:21e[39m
e[34mW20150822-20:36:06.653(-4)? (STDERR) e[39me[35m at app/etherApp/etherApp.js:66:3e[39m
e[34mW20150822-20:36:06.654(-4)? (STDERR) e[39me[35m at /home/cmt/projects/pressIt/.meteor/local/build/programs/server/boot.js:222:10e[39m
e[34mW20150822-20:36:06.654(-4)? (STDERR) e[39me[35m at Array.forEach (native)e[39m
e[34mW20150822-20:36:06.654(-4)? (STDERR) e[39me[35m at Function..each..forEach (/home/cmt/.meteor/packages/meteor-tool/.1.1.4.1q76ub5++os.linux.x86_64+web.browser+web.cordova/mt-os.linux.x86_64/dev_bundle/server-lib/node_modules/underscore/underscore.js:79:11)e[39m
e[34mW20150822-20:36:06.654(-4)? (STDERR) e[39me[35m at /home/cmt/projects/pressIt/.meteor/local/build/programs/server/boot.js:117:5e[39m
=> Exited with code: 8
=> Your application is crashing. Waiting for file change.