Hey, sorry that we didn’t reply earlier, but this should be fixed in the latest alpha of V12. If you use an older version, defining shims files for json and promise should fix it.
I’m on alpha.11 and it doesn’t seem to be fixed. It just generates:
import type {JSON_t as Stdlib_JSON_t} from './Stdlib.gen.ts';
Which I handle by just putting a manual Stdlib.gen.ts file in the same dir. Ugly af, but works:
// Remove this file once genType patch is merged
// https://github.com/rescript-lang/rescript/pull/7378
export type JSON_t = unknown
alpha.11 is older so maybe alpha.12 will handle it properly?
Anyway, re. shims:
Shims don’t work for JSON.t. For shims to work, you have to use shims “Js” and use Js.Json.t instead. Any shims for “JSON” (or any ridiculous combination with Stdlib_ Core_ or double underscores etc) are just ignored in v11.