UPDATE: FIXED
Nevermind I just had to upgrade gentype
, I will leave my post below incase someone else runs into the same problems
I tried upgrading but I get Fatal error: exception Cmi_format.Error(_)
Upgrade process:
npx bsb -clean-world
npm i -g bs-platform@7.0.0
yarn add -D bs-platform@7.0.0
-
yarn re:watch
--> (bsb -make-world -clean-world -w
)
My bs-config
{
"name": "web-player",
"reason": { "react-jsx": 3 },
// NOTE: REMOVE -bs-g ON PRODUCTION
"bsc-flags": ["-bs-super-errors", "-bs-g"],
"sources": [
{
"dir": "src",
"subdirs": true
}
],
"package-specs": [
{
"module": "es6",
"in-source": true
}
],
"warnings": {
// fail compilation on missing cases in pattern-matching
"number": "+8",
"error": "+8"
},
"suffix": ".bs.js",
"namespace": true,
"bs-dependencies": [
"reason-react",
"@glennsl/bs-json",
"bs-webapi",
"bs-css"
],
"ppx-flags": [],
"refmt": 3,
"gentypeconfig": {
"language": "typescript | untyped",
"shims": {},
"debug": {
"all": false,
"basic": false
}
}
}
```~~