In hapijs ' property register of undefined ' is comming :     Packages are--->
    
    "dependencies": {
        "handlebars": "^4.0.11",
        "hapi": "^16.6.2",
        "inert": "^4.2.1",
        "vision": "^5.3.2"
      }
    }
    
    ------------------------------------------------------------------------------
    //Vision templates
    
    server.register(require('vision'),function (err) {
       if(err){
           throw err;
       }
       server.views({
           engines:{
               html:require('handlebars')
           },
           path:__dirname+'/views'
       });
    
    
    });

I am getting property 'register' of undefined in vision and handlebars in node.js.
i have provide with dependencies as well, please help
