View.render is not a function

#1
'use strict'

class HubController {
    async test(view){
        return view.render('home', {

        })
    }
}

module.exports = HubController

route

Route.get('/hub', 'HubController.test')


how to fix?

0 Likes

#2

Hi,
please try to change the line of function declaration to:

async test({view}){
}

Hope its help :grinning:

1 Like