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

meteor js integration #70

Closed
stevenbarragan opened this issue Mar 25, 2014 · 1 comment
Closed

meteor js integration #70

stevenbarragan opened this issue Mar 25, 2014 · 1 comment

Comments

@stevenbarragan
Copy link

Hi guys,

I'm new in node js and I'm trying to integrate node-postgres package, which requires node-pool package but I'm having some errors. Could somebody please help me?

W20140324-12:49:25.508(-6)? (STDERR) /Users/crowdint/.meteor/tools/8e197f29c5/lib/node_modules/fibers/future.js:173
W20140324-12:49:25.509(-6)? (STDERR) throw(ex);
W20140324-12:49:25.509(-6)? (STDERR)      ^
W20140324-12:49:25.513(-6)? (STDERR) ReferenceError: exports is not defined
W20140324-12:49:25.514(-6)? (STDERR)     at app/node_modules/pg/node_modules/generic-pool/lib/generic-pool.js:99:1
W20140324-12:49:25.514(-6)? (STDERR)     at app/node_modules/pg/node_modules/generic-pool/lib/generic-pool.js:469:3
W20140324-12:49:25.514(-6)? (STDERR)     at /Users/crowdint/projects/kardex/.meteor/local/build/programs/server/boot.js:155:10
W20140324-12:49:25.515(-6)? (STDERR)     at Array.forEach (native)
W20140324-12:49:25.515(-6)? (STDERR)     at Function._.each._.forEach (/Users/crowdint/.meteor/tools/8e197f29c5/lib/node_modules/underscore/underscore.js:79:11)
W20140324-12:49:25.517(-6)? (STDERR)     at /Users/crowdint/projects/kardex/.meteor/local/build/programs/server/boot.js:82:5

This is the file:

exports.Pool = function (factory) {
  var me = {},
. . .

I did this change but I'm not sure it's what I have to do.

exports = typeof exports === "undefined" ? {} : exports
exports.Pool = function (factory) {
  var me = {},

I wonder where exports it's defined or if there is a problem in the order the files are getting loaded with meteor or something

@sandfox
Copy link
Collaborator

sandfox commented Jun 20, 2014

Hi there,

Do you have some example code and or steps (simpler the better) that reproduces this issue. It's a little hard to work out from those snippets whats going on, and I suspect there is a lot of magic going on in meteor.

@sandfox sandfox closed this as completed Dec 24, 2014
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

2 participants