Closed illusionalsagacity closed 1 year ago
It should only be the PPX that is not working, right? Because I worked with 10.1 for some time now already, and had no issues.
When we adopted this repository, we stated that we won't maintain the PPX if it breaks, as we don't use it. So we could get rid of it, or do you use it?
I think none of the CI will work on material-ui v4 because a package vrtest-mui
seems to have been unpublished.
It should only be the PPX that is not working, right?
Yeah it was some combination that led to that rules of hooks error in the PR description. I should've written it down as it seems to work with:
It may have been on react 18 that it was broken.
When we adopted this repository, we stated that we won't maintain the PPX if it breaks, as we don't use it. So we could get rid of it, or do you use it?
I do use it, but have been planning on moving away for some time since V5 encourages using emotion instead.
I went through the test cases listed in the PR description and couldn't reproduce that error, odd. As far as I can tell this is working normally, aside from the CI not being able to be run anymore.
edit: I will try linking this with autobooks' app tomorrow and making sure that works
Seems to be working fine in our app with
"jsx": { "version": 3, "mode": "classic" },
"bsc-flags": ["-open ReactV3"],
Yeah the PPX doesn't work in JSXv4:
FAILED: Foo.cmj
We've found a bug for you!
Foo.res
The value jsx can't be found in ReactDOM
I'll indicate in the README for it when I get a chance
This might not be necessary, seems to be compiling on rescript@10.1.3
Fixes a compilation issue with
rescript@^10.1.2
, where theBox
module's optional named parameters wereoption<option<'a>>
rather thanoption<'a>
I need to test this some more with more permutations of
rescript
+@rescript/react
and bsconfig, not sure if this is fully workingneeds node >14
ppx definitely doesn't work in 18:
test cases
ppx-test
from monorepo by removing it frompackage.json
workspaces
, this allows a separate version ofrescript
&@rescript/react
to be tested.public/rescript-material-ui
,public/rescript-material-ui-lab
, andpublic/rescript-material-ui-ppx
runyarn link
ppx-test
run:[x] rescript@10.0.1
[x] rescript@~10.1.2
"bsc-flags": ["-open ReactV3"]
"bsc-flags": ["-open ReactV3"]