You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to start (or build) a custom entry other than the one specified in gleam.toml fails:
❌ Bundling with esbuild
I ran into an unexpected issue while trying to bundle your project with esbuild.
Here's the error message I got:
✘ [ERROR] Could not resolve "../dev/javascript/foo/foo.mjs"
build/.lustre/entry.mjs:1:21:
1 │ import { main } from "../dev/javascript/foo/foo.mjs";
╵ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error
In the example above, there are two modules app (main) and foo (custom). Starting the main module (i.e. the one speicified in gleam.toml by running gleam run -m lustre/dev --entry=app works. Starting the custom module by running gleam run -m lustre/dev --entry=foo fails with the aforementioned error. The bundle is actually available under a different path (../dev/javascript/app/foo.mjs).
Let me know, if I can provide any further information.
The text was updated successfully, but these errors were encountered:
Trying to start (or build) a custom entry other than the one specified in gleam.toml fails:
In the example above, there are two modules
app
(main) andfoo
(custom). Starting the main module (i.e. the one speicified ingleam.toml
by runninggleam run -m lustre/dev --entry=app
works. Starting the custom module by runninggleam run -m lustre/dev --entry=foo
fails with the aforementioned error. The bundle is actually available under a different path (../dev/javascript/app/foo.mjs
).Let me know, if I can provide any further information.
The text was updated successfully, but these errors were encountered: