You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried to run the example, however, I got this error:
/home/ubuntu/ortools/node-or-tools-master/example/index.js:78
MbxClient.getMatrix(locations.map(function (coord) { return { longitude: coord[0], latitude: coord[1] } }), {profile: profile}, function(err, results) {
^
TypeError: MbxClient.getMatrix is not a function
at Object.<anonymous> (/home/ubuntu/ortools/node-or-tools-master/example/index.js:78:11)
at Module._compile (module.js:410:26)
at Object.Module._extensions..js (module.js:417:10)
at Module.load (module.js:344:32)
at Function.Module._load (module.js:301:12)
at Module.runMain [as _onTimeout] (module.js:442:10)
at Timer.listOnTimeout (timers.js:92:15)
Process exited with code: 1
I am sure that MbxClient is initialized, and I can see it in debugger as attached snapshot:
As for installed dependencies versions as below: ( [email protected] )
I've tried to run the example, however, I got this error:
I am sure that
MbxClient
is initialized, and I can see it in debugger as attached snapshot:As for installed dependencies versions as below: (
[email protected]
)So, do I miss something? please advice..
The text was updated successfully, but these errors were encountered: