Closed jamesearl closed 2 weeks ago
Ah, I was able to resolve this by deleting the manifest.toml
file and then re-running the package add command.
Ah this is because lustre_http
is stuck on an older version of gleam_json
. It's not an official package so I can't change that but I can at least update the guide to have uses do gleam add gleam_json@1
.
For some context the gleam_json
package is the same in both v1 and v2, and for the javascript target these two versions are actually identical! Erlang included some json decoding in the standard library with the latest release of the VM so gleam_erlang released a new major version so folks on an older version of erlang weren't stuck.
I was trying to run through the quickstart for v4.6.1 found at https://hexdocs.pm/lustre/guide/01-quickstart.html.
I'm got to the section titled "Talking to the outside world". When running the command
I hit this error:
This was my gleam.toml when reaching that step of the quickstart:
This is my working environment