Enderchief / vite-gleam-example

a minimal example project for using Gleam with Vite
Apache License 2.0
1 stars 0 forks source link

Building a lustre project didn't work #1

Open kemo-1 opened 2 days ago

kemo-1 commented 2 days ago

https://github.com/sanabel-al-firdaws/gleam_vite/tree/master

i tried making a template for lustre it works fine in development but when building the project it gives errors

kemo-1 commented 2 days ago

i tried changing vite config to this but it didn't work

import gleam from "vite-gleam";

export default {
    plugins: [gleam()
    ],

}

it gives me this error

index-Sk90AiAu.js:1  Uncaught Error: Pattern match failed, no pattern matched the value.
    at pe (index-Sk90AiAu.js:1:4603)
    at ji (index-Sk90AiAu.js:7:4780)
    at index-Sk90AiAu.js:7:6062
    at We (index-Sk90AiAu.js:1:4983)
    at Xn (index-Sk90AiAu.js:7:6054)
    at jt.<anonymous> (index-Sk90AiAu.js:7:7048)
    at jt.Ne (index-Sk90AiAu.js:2:9567)
    at index-Sk90AiAu.js:2:8263
kemo-1 commented 2 days ago

i think its related to sketch

function vi(e, t) {
    if (!(t instanceof mt))
        throw pe("let_assert", "sketch", 53, "class_name", "Pattern match failed, no pattern matched the value.", {
            value: t
        });
    let n = t.cache
      , r = ui(e, n);
    return dr(r, s => new mt(s))
}