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

TypeError: require(...) is not a function #22

Open
BoxingOctopus opened this issue Dec 5, 2016 · 2 comments
Open

TypeError: require(...) is not a function #22

BoxingOctopus opened this issue Dec 5, 2016 · 2 comments

Comments

@BoxingOctopus
Copy link

Hubot won't start and throws the following error:

ubuntu@chat ~/hubot/markov $ ./bin/hubot -a lets-chat
connected
Joined Hubot Lab
[Mon Dec 05 2016 17:34:59 GMT+0000 (UTC)] ERROR Error loading scripts from npm package - TypeError: require(...) is not a function
  at Robot.loadExternalScripts (/home/ubuntu/hubot/markov/node_modules/hubot/src/robot.coffee:401:11, <js>:272:39)
  at /home/ubuntu/hubot/markov/node_modules/hubot/bin/hubot:152:11, <js>:159:26
  at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:415:3)
@ElectricWarr
Copy link

@TuxOtaku Did you ever fix this? Just run into the same issue myself, almost a year later.

@brucellino
Copy link

I just spent a few days debugging this for a project of mine. I found that the error was that I had a node package in my external-scripts which was not a hubot script, so hence the "not a function" error. Hope this helps.

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

3 participants