TheoPierne / spot-sdk-js

Develop applications and payloads for Spot using the unofficial Boston Dynamics Spot Node.js SDK.
Other
4 stars 2 forks source link

compile error #3

Open kaspesla opened 1 year ago

kaspesla commented 1 year ago

Something not quite right here. I had to comment out some of this to get it to go.

(base) ken@lll spot-sdk-js % node examples/hello_spot/hello_spot.js --username spot --password my password -v 192.168.80.3
/Users/ken/Sandbox/spot-sdk-js/bosdyn-client/power.js:208
  [power_pb.FanPowerCommandResponse.Status.STATUS_OK]: [null, null],
                                    ^

TypeError: Cannot read properties of undefined (reading 'Status')
    at Object.<anonymous> (/Users/ken/Sandbox/spot-sdk-js/bosdyn-client/power.js:208:37)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
    at Module.load (node:internal/modules/cjs/loader:981:32)
    at Function.Module._load (node:internal/modules/cjs/loader:822:12)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/Users/ken/Sandbox/spot-sdk-js/bosdyn-client/command_line.js:42:5)
    at Module._compile (node:internal/modules/cjs/loader:1101:14)
    at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)
(base) ken@lll spot-sdk-js % node examples/hello_spot/hello_spot.js --username spot --password spotspotspot -v 192.168.80.3
/Users/ken/Sandbox/spot-sdk-js/bosdyn-client/power.js:208
  [power_pb.FanPowerCommandResponse.Status.STATUS_OK]: [null, null],
                                    ^
TheoPierne commented 1 year ago

I commited a new version of proto files, which includes the status for FanPowerCommandResponse

This issue should be resolved !