koalazak / dorita980

Unofficial iRobot Roomba and Braava (i7/i7+, 980, 960, 900, e5, 690, 675, m6, etc) node.js library (SDK) to control your robot
MIT License
931 stars 147 forks source link

Example getting "TypeError: dorita980.Local is not a constructor" #174

Closed s28400 closed 12 months ago

s28400 commented 1 year ago

Hey all, I am trying to use this tool but I am getting blocked with the following error after following the Quick Start

I receive the error: "TypeError: dorita980.Local is not a constructor" on the var myRobotViaLocal = new dorita980.Local() line.

OS: Ubuntu 22.04 Node version: v12.22.9 NPM version: 8.5.1

Can anyone point me in the right direction with this? Thanks!

rahmanonik18 commented 1 year ago

Have you found the solution? I am stuck with this too, please let me know

bloomkd46 commented 1 year ago

Don't use new, just use var myRobotViaLocal = dorita980.Local()

koalazak commented 12 months ago

WTF? There is nothing wrong with var myRobotViaLocal = new dorita980.Local() in plain javascript node&12 Local() is a function