OK it appears that if I:
import Router from 'express/lib/router'
then I get a router instance. This is the same instance the express index should export.
So I am close but this feels wrong, I haven’t changed anything, I feel like I have some kind of incorrect module configuration or something.
So why can’t I do express.Router()
.Any ideas would be greatly appreciated.