Reputation: 261
var Fishbowl = require('node-fishbowl');
var fb = new Fishbowl.Fishbowl({
host: 'X.X.X.X',
IADescription: 'Reporting Dashboard',
IAID: 2286,
IANAME: 'node-dashboard',
password: 'X',
port: '28192',
username: 'X',
bunyanLevel: 'debug'
});
The above code returns "TypeError: Fishbowl.Fishbowl is not a constructor". I've tried just about everything I can think of to get around this but I have been unsuccessful.
Running Node.js v8.2.1
Any help would be appreciated.
Upvotes: 1
Views: 2419
Reputation: 7746
That is an error in their documentation, they now export Fishbowl as default
.
Try this:
var Fishbowl = require('node-fishbowl');
var fb = new Fishbowl({
host: 'X.X.X.X',
IADescription: 'Reporting Dashboard',
IAID: 2286,
IANAME: 'node-dashboard',
password: 'X',
port: '28192',
username: 'X',
bunyanLevel: 'debug'
});
Look at the source it changed in cc3a400.
Upvotes: 2