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

Object is not a function #197

Closed
SamHam opened this issue Jun 2, 2015 · 3 comments
Closed

Object is not a function #197

SamHam opened this issue Jun 2, 2015 · 3 comments

Comments

@SamHam
Copy link

SamHam commented Jun 2, 2015

Hi,I keep getting the below issue 'Object is not a function' when I load the Hubot-slack module.

Can anyone help with this?

mybot> [Tue Jun 02 2015 19:15:23 GMT+0100 (BST)] ERROR Error loading scripts from npm package - TypeError: object is not a function
at Robot.loadExternalScripts (/home/sam/mybot/node_modules/hubot/src/robot.coffee:263:11, :212:39)
at /home/sam/mybot/node_modules/hubot/bin/hubot:119:11, :123:26
at fs.js:334:14
at FSReqWrap.oncomplete (fs.js:95:15)

Cheers,
Sam

@skippednote
Copy link

You don't have to add hubot-slack in your external-scripts.json.

drnikki referenced this issue in waybetterdev/RichardSimmons Sep 9, 2015
@technicalpickles
Copy link
Contributor

@SamHam I'm going to close, because @skippednote touched on why this particular error. Please let me know if you are still having problems!

@farski
Copy link

farski commented Oct 27, 2015

@technicalpickles Just in case someone else ends up here... I was having an issue where Hubot was starting but not connecting to Slack, so I tried adding hubot-slack to external-scripts.json, and obviously got this error. The issue was my boot script was using the wrong adapter; it needed --adapter slack

bhuguet added a commit to bhuguet/hubot-to-ease-my-life that referenced this issue Feb 22, 2017
brucellino added a commit to AAROC/DevOps that referenced this issue Oct 22, 2017
This commit changes the name of the slack API variable (it's not a
webhook , but an API token), and removes the @slack_client npm
package from the external scripts.

HT slackapi/hubot-slack#197 (comment)
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

4 participants