git clone https://github.com/lustre-labs/lustre.git
cd lustre
git checkout 969f77de72ca9502aa160e637d2f4fce86f94053
cd test-apps/vdom-test-templates
Now in test-apps/vdom-test-templates/gleam.toml change the gleam_stlidb dependency to ">= 0.43.0 and < 2.0.0" like so:
name = "app"
version = "1.0.0"
target = "javascript"
[dependencies]
gleam_stdlib = ">= 0.43.0 and < 2.0.0"
lustre = { path = "../../" }
Now run the build for that project:
~/Projects/lustre/test-apps/vdom-test-templates → gleam build
Resolving versions
error: Dependency resolution failed
An error occurred while determining what dependency packages and
versions should be downloaded.
The error from the version resolver library was:
An unrecoverable error happened while solving dependencies: gleam_stdlib is
specified with the requirement `>= 0.43.0 and < 2.0.0`, but it is locked to
0.37.0, which is incompatible.
Version: gleam@1.6.2 (OTP26)
Building upon this issue: https://github.com/gleam-lang/gleam/issues/3890
Clone this version of lustre
Now in
test-apps/vdom-test-templates/gleam.toml
change the gleam_stlidb dependency to">= 0.43.0 and < 2.0.0"
like so:Now run the build for that project:
This error is resolved by just deleting
manifest.toml
and running build again. The root cause might be the same as https://github.com/gleam-lang/gleam/issues/3890