hapijs / glue

Server composer for hapi.js
Other
245 stars 62 forks source link

Glue.compose is not a function #91

Closed quapaw closed 7 years ago

quapaw commented 7 years ago

This is probably a basic issue. But I have tried the basic examples but I keep getting Glue.compose is not a function

I have package.json

{
  "name": "glue",
  "version": "1.0.0",
  "description": "",
  "main": "index.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "dependencies": {
    "Glue": "0.0.2",
    "hapi": "^16.1.0"
  }
}

My index.js

var Glue = require('glue');
var manifest = {
  connection: [{
     port: 8080
  }]
};

Glue.compose(manifest, function(err, server) {
   server.start(function (err) {
      //server running on port 8080
   });
});

I am running node v7.3.0

vdeturckheim commented 7 years ago

you are not requireing the right package: https://www.npmjs.com/package/Glue is not https://www.npmjs.com/package/glue

quapaw commented 7 years ago

crap, thanks I knew it was something simple

lock[bot] commented 4 years ago

This thread has been automatically locked due to inactivity. Please open a new issue for related bugs or questions following the new issue template instructions.