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

npm run res:start fails #65

Open
mlegls opened this issue Dec 29, 2021 · 0 comments
Open

npm run res:start fails #65

mlegls opened this issue Dec 29, 2021 · 0 comments

Comments

@mlegls
Copy link

mlegls commented Dec 29, 2021

When running npm run res:start in a freshly cloned repo, I get the following output

> [email protected] res:start
> rescript build -w

>>>> Start compiling 
rescript: [1/9] src/App.cmi
FAILED: src/App.cmi
can not handle multiple files
rescript: [2/9] src/Index.cmi
FAILED: src/Index.cmi
can not handle multiple files
rescript: [3/9] src/layouts/MainLayout.cmi
FAILED: src/layouts/MainLayout.cmi
can not handle multiple files
rescript: [4/9] src/bindings/Next.cmj
FAILED: src/bindings/Next.cmj
can not handle multiple files
FAILED: cannot make progress due to previous errors.
>>>> Finish compiling(exit: 1)

npm run dev works fine, and I've tried npm install with both node 6 and node 7. npx rescript build fails with the same output. The most similar issue I could find is https://forum.rescript-lang.org/t/error-can-not-handle-multiple-files/1368, which I don't think was ever resolved either. I'm on a Mac though (2020 M1 Macbook Air, MacOS Big Sur 11.6). From what I can tell, it seems like the failure happens every time rescript tries to generate OCaml files.

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