The found fix, although a bit inconvenient, I wanted the import on one line to be imported, and only one instance of it looked bad. I think this was not interpreted as a function. @ThiefMaster thanks for the "new", I also forgot about it: /
var will = new (require('modulename').Person)('Will')
Will03uk
source share