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
ERROR
Failed attempting to build your project with Dune
The scaffolding process failed while running `opam exec -- dune build`.
Dune is OCaml and ReasonML's build tool.
Please try `cd`ing into the project directory created by
`create-melange-app` and running the following commands:
eval $(opam env)
dune build
[...]
`opam switch list`,
`dune build`,
`cat dune-project`, and `cat dune`
ben@moonraker meli 1 $ opam switch list
# switch compiler description
/Users/ben/build/flow/flow ocaml-base-compiler.4.14.0 /Users/ben/build/flow/flow
/Users/ben/hack/melange/melange-opam-template ocaml-base-compiler.5.1.0 /Users/ben/hack/melange/melange-opam-template
-> /Users/ben/hack/melange/meli/meli ocaml-base-compiler.5.1.1 /Users/ben/hack/melange/meli/meli
/Users/ben/sources/nox/nox ocaml-base-compiler.5.0.0 /Users/ben/sources/nox/nox
default ocaml.5.1.1 default
[NOTE] Current switch has been selected based on the current directory.
The current global system switch is default.
Hi, I got this issue too with both vite and webpack. Seems there's an issue with dune build getting to the node_modules/ subfolder in the project root, as the dune build seems to happen two folders upward of the created project?
Already ran npm install, npm i vite (for the vite project) and also npm i webpack (for the webpack project)
Thank you!
-- hi, after debugging locally, I think the problem was with opam switches. I have set the global opam switch to a top folder location and it seemed to have broke dune build. After deleting all local opam switches and trying again, it works now. Thanks!
npm create melange-app@latest
eval $(opam env)
dune build
opam switch list
dune build
dune file
dune-project file
The text was updated successfully, but these errors were encountered: