Closed jan-swiecki closed 7 years ago
Yeah, it's the same thing. I'm working on that here https://github.com/hapijs/tv/pull/117
I'm running into the same error, but it does not work when registering inert
and vision
. However, I'm using Glue, so maybe that's the reason why.
I updated Hapi to 11.x and get the same problem in my test code (i use composer manifest for develop code). Then I move the server.views to the register callback, the issue is solved :). Hope it help Show my code (it a test case code, but in the develop code, the register, and config server view is same)
Hi, I'm new to hapi. Facing same issue "server.views undefined is not a function" Anyone knows how to fix this issue?
Yo need to install vision/visionary El El mié, 14 de dic. de 2016 a las 04:44, Mari01032015 < notifications@github.com> escribió:
Hi, I'm new to hapi. Facing same issue "server.views undefined is not a function" Anyone knows how to fix this issue?
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/hapijs/tv/issues/118#issuecomment-267002538, or mute the thread https://github.com/notifications/unsubscribe-auth/AAi5f7GH_kRcJGWMlT2zzOrwuiLtwfeMks5rH8iTgaJpZM4Fz16Z .
-- Sent from Inbox,
Oscar
When I register plugin with
server.register(Tv, callback)
I get thisProbable cause: hapijs/hapi#2706 i.e. hapi 9 compatibility problem.
It worked after registering
inert
andvision
plugin manually i.e.server.register([require('inert'), require('vision'), require('tv'), function(err) {...}); // in that order