reinterpretcat / vrp

A Vehicle Routing Problem solver
https://reinterpretcat.github.io/vrp/
Apache License 2.0
331 stars 68 forks source link

Invalid type error in console when trying the JS example #37

Closed rahns closed 2 years ago

rahns commented 2 years ago

Hi, I am attempting to use the pkg folder in the latest release of vrp_cli_wasm.zip with a index.html file containing the contents on the documentation page here, however instead of the result being printed to the javascript console, I am presented with this error in the console:

Screenshot 2021-08-08 142653

I haven't modified any files in 'pkg' or the contents of 'index.html', and the routing locations are successfully printed to the console prior to the error message.

I am not sure if this is a bug or if I am doing something wrong, but I can't see why it shouldn't work as is. Thanks in advance for any help.

reinterpretcat commented 2 years ago

Hi, thanks for reporting. Probably, it is related to recent format changes and outdated documentation. I'll check it

reinterpretcat commented 2 years ago

I've corrected example in the source code:

https://github.com/reinterpretcat/vrp/blob/master/docs/src/examples/interop/javascript.md

I'll update documentation with the next release (expecting soon)