Skip to content
This repository has been archived by the owner on Jan 25, 2020. It is now read-only.

Undefined is not a function in Good Module #107

Closed
program247365 opened this issue May 6, 2015 · 4 comments
Closed

Undefined is not a function in Good Module #107

program247365 opened this issue May 6, 2015 · 4 comments

Comments

@program247365
Copy link

On node: v0.12.2

Commands I run:
npm init {follow instructions}
npm install kappa --save
npm start

$ npm start
> my-kappa@0.0.1 start /home/kridgway/kappa
> kappa -c config.json

/home/kridgway/kappa/node_modules/good/lib/index.js:12
    server.on('stop', function () {
           ^
TypeError: undefined is not a function
    at exports.register (/home/kridgway/kappa/node_modules/good/lib/index.js:12:12)
    at /home/kridgway/kappa/node_modules/kappa/node_modules/hapi/lib/plugin.js:187:23
    at iterate (/home/kridgway/kappa/node_modules/kappa/node_modules/hapi/node_modules/items/lib/index.js:35:13)
    at Object.exports.serial (/home/kridgway/kappa/node_modules/kappa/node_modules/hapi/node_modules/items/lib/index.js:38:9)
    at internals.Plugin.register (/home/kridgway/kappa/node_modules/kappa/node_modules/hapi/lib/plugin.js:171:11)
    at /home/kridgway/kappa/node_modules/kappa/node_modules/hapi/node_modules/glue/lib/index.js:188:22
    at iterate (/home/kridgway/kappa/node_modules/kappa/node_modules/hapi/node_modules/items/lib/index.js:35:13)
    at Object.exports.serial (/home/kridgway/kappa/node_modules/kappa/node_modules/hapi/node_modules/items/lib/index.js:38:9)
    at /home/kridgway/kappa/node_modules/kappa/node_modules/hapi/node_modules/glue/lib/index.js:185:19
    at iterate (/home/kridgway/kappa/node_modules/kappa/node_modules/hapi/node_modules/items/lib/index.js:35:13)

My package.json:

{
  "name": "my-kappa",
  "version": "0.0.1",
  "description": "My Installation of Kappa, an NPM Proxy.\"",
  "main": "index.js",
  "dependencies": {
    "good": "^6.1.2",
    "good-console": "^5.0.0",
    "hapi": "^8.4.0",
    "kappa": "^1.0.0-rc.11"
  },
  "devDependencies": {},
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1",
    "start": "kappa -c config.json"
  },
  "author": "",
  "license": "ISC"
}    

Does Kappa work on the latest Hapi/Good versions? In the interim, does anybody know what exact versions of the modules work to run Kappa?

@jasisk
Copy link
Contributor

jasisk commented May 6, 2015

Currently, we support the following versions:

{
    "good": "^3",
    "good-console": "^2",
    "hapi": "^7"
}

The newer good modules require hapi 8, and the surface between 7 and 8 changed quite a bit.

@program247365
Copy link
Author

Thanks! Putting in those versions made it all work. 👍

Look how excited I am!

too-excited

@jasisk
Copy link
Contributor

jasisk commented May 6, 2015

You're excited? I'M EXCITED!

too excited

@program247365
Copy link
Author

😆

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants