hapijs / crumb

CSRF crumb generation and validation for hapi
Other
171 stars 50 forks source link

Example won't launch: `Server.views is not a function` #97

Closed citelao closed 6 years ago

citelao commented 7 years ago

Even with dependencies installed properly, I could not launch server.js in examples/ until I added the code in the Vision README:

server.register(require('vision'), (err) => {
    if (err) {
        console.log("Failed to load vision.");
    }
});

That fixed it.

ryanwilliamquinn commented 7 years ago

You should put a PR in for this, I had the same problem.

geek commented 6 years ago

Fixed by #106

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.