-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Missing property server.views #2713
Comments
You need to register the server.register(require('vision'), function (err) {
if (err) {
throw err;
}
server.views({ ... });
server.start(function () {
server.log('info', 'Server running at: ' + server.info.uri);
});
}); |
Not yet, the documentation needs an update. |
gergoerdosi thx. You helps me 👍 |
@vitaliyAtSvarog read #2682 |
Yeah, the documentation and plugins page really need updating. Even though I specifically read about the breaking changes in the v9.0.0 release notes it still took me a while to figure out what to actually DO to migrate the code. In addition to registering the newly separated plugins, you also have to actually install them via npm (and even then it is somewhat obscure, because the plugin names aren't prefixed with hapi--instead it's just vision and inert). They aren't even listed on the "Plugins" page at the site yet either. With as rapid as updates are for hapi, wouldn't it be better to have some type of versioned documentation like MySQL? I know that a lot of the coders have more important things to do than update documentation, but it's definitely important. I'd volunteer myself but I'm not an expert at even just using hapi yet... _EDIT_ When I mentioned versioned documentation, I do realize the API docs are versioned, but it would be useful to have a similar model for other parts of the site like plugins (especially when a particular plugin doesn't even apply or make sense before or after a certain version). |
This is the first breaking release since last December. I wouldn't call it rapid. |
Sorry, I didn't mean to imply there are breaking changes all the time. But I'd still call going from version 2.x to 9.x in the past year and a half a fairly rapid pace. Even if changes aren't breaking it could still be somewhat difficult to stay on top of things without really good documentation. That being said I'd much rather have the type of stellar development that has been going on than to have awesome documentation with a stagnant framework. So thanks for your work. |
then in console write 'node server.js' and get error http://screencast.com/t/TfZQLTbb
see debug
The text was updated successfully, but these errors were encountered: