Do you have - by any chance - different versions of the same package installed?
Wha’ts the result of npm ls @nobleai/rescript-prelude
?
Are you even using npm? (or yarn? pnpm?..)
Did you change a dependency (e.g. npm install
/ update) while watch of the compiler was running or similar?
Does the issue persist if you run rescript clean
and build afterwards again?