After some experimenting, I realized that when using
app.use.apply(null, ['/', f => f]);
An unexpected TypeError occurs:
TypeError: Cannot read property 'lazyrouter' of null
at use (node_modules/express/lib/application.js:214:7)
Given that my express app instance is properly configured, what mistake am I making here? Is the correct syntax for app.use([path], cb)
being followed?
http://expressjs.com/en/guide/using-middleware.html