Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update jasper? #1

Open
Sunling472 opened this issue Sep 29, 2024 · 1 comment
Open

Update jasper? #1

Sunling472 opened this issue Sep 29, 2024 · 1 comment

Comments

@Sunling472
Copy link

linux/fedora

gleam run -m garnet_tool example out bun

Compiling jasper
error: Unknown module field
    ┌─ /home/sunling/gapp/build/packages/jasper/src/jasper.gleam:393:18
    │
393 │           |> list.at(index)
    │                  ^^^ Did you mean `last`?

The module `gleam/list` does not have a `at` value.

error: Unknown module field
    ┌─ /home/sunling/gapp/build/packages/jasper/src/jasper.gleam:403:18
    │
403 │           |> list.at(index)
    │                  ^^^ Did you mean `last`?

The module `gleam/list` does not have a `at` value.
@Comamoca
Copy link
Owner

Hi, since jasper is only used in example.gleam, I deleted it with this commit.
It should probably work.

Also, the module name specified to garnet must be in the format specified in Gleam's import.
Run the following command to turn the sample code into a single executable binary:
gleam run -m garnet_tool garnet_tool/example out bun
I couldn't update the README for this, so I just updated it. Sorry.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants