Hi
I tried to run npm run bs:start
in https://github.com/rescript-association/rescript-lang.org
The error is
bsb: [21/318] src/Playground.cmi
FAILED: src/Playground.cmi
can not handle multiple files
This error appears for multiple other files.
What could be the issue?
Not sure what this is. Could you file an issue on GitHub instead?
ryyppy
April 2, 2021, 9:43am
3
I’d need more context, since I don’t understand how this can happen
Did you do a fresh clone? (no stale state?)
If not, did you update to the newest deps, and cleared prev. artifacts with npm run bs:clean
?
Yes I did a fresh clone.
I installed the node_modules.
When I run npm run bs:build
it fails.
bsb: [18/318] src/Design.cmi
FAILED: src/Design.cmi
can not handle multiple files
I used windows and git bash.
Hongbo
April 2, 2021, 10:28am
5
It may be bsc is used to compile multiple files in the command line.
ryyppy
April 6, 2021, 10:00am
6
is this a windows related issue?
For anyone interested, I was running into the same problem on windows.
It turned out that the name in my bsconfig.json had a space. I changed the name into a kebab-cased -name and the problem went away.
This caused my error:
{
"name": "Rescript next.js-app",
// ... snip
}
This solved my error:
{
"name": "rescript-nextjs-app",
// ... snip
}
Not sure if this solves the problem of the OP, but perhaps it might help someone out there who made the same mistake as I have
2 Likes
Hongbo
April 22, 2021, 12:02am
8
Cool, would you file an issue on github so we can give an error message earlier?
URVL
December 30, 2021, 2:27am
10
Hi, I’m here because I got this error.
And the problem was the space of the “name” value in bsconfig.json
the error displayed by the compiler at the moment is also not informative " .cmj
can not handle multiple files "