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

Sketch assertion fails when building a vite lustre project #36

Open
kemo-1 opened this issue Nov 30, 2024 · 1 comment
Open

Sketch assertion fails when building a vite lustre project #36

kemo-1 opened this issue Nov 30, 2024 · 1 comment

Comments

@kemo-1
Copy link

kemo-1 commented Nov 30, 2024

kemo-tvt
a project you can test run
npm run dev and it will work when doing npm run build it will fail

the first error message is this

index-DiHr-d0T.js:7  Uncaught Error: Pattern match failed, no pattern matched the value.
    at pe (index-DiHr-d0T.js:1:4603)
    at vi (index-DiHr-d0T.js:7:4776)
    at index-DiHr-d0T.js:7:6058
    at We (index-DiHr-d0T.js:1:4983)
    at jn (index-DiHr-d0T.js:7:6050)
    at jt.<anonymous> (index-DiHr-d0T.js:7:7044)
    at jt.Ne (index-DiHr-d0T.js:2:9543)
    at index-DiHr-d0T.js:2:8257

when going to the first line in the error it puts me in a js file with this line

        throw pe("let_assert", "sketch", 53, "class_name", "Pattern match failed, no pattern matched the value.", {
            value: t
        });

this error

@kemo-1
Copy link
Author

kemo-1 commented Nov 30, 2024

confirmed it its a sketch issue i changed the main gleam file to a lustre example and it works when building the project

browser (latest version)

Microsoft Edge
Version 131.0.2903.70 (Official build) (64-bit)

its working here

https://github.com/lustre-labs/lustre/blob/main/examples/02-interactivity/src/app.gleam

but not with sketch

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

1 participant