Closed FilipKittnar closed 1 year ago
This seemed to help:
@react.component @module("@material-ui/core/ScopedCssBaseline")
external make: (
~children: React.element=?,
~classes: Mui.ScopedCssBaseline.Classes.t=?,
~className: string=?,
~id: string=?,
~style: ReactDOM.Style.t=?,
~key: string=?,
~ref: ReactDOM.domRef=?,
) => React.element = "default"
The problem here is, that it is not re-exported in this file.
They only fixed that in v5, unfortunately: https://github.com/mui-org/material-ui/pull/21869/files
Maybe we can patch the MUI sources before the code generation step?
This is fixed in version 5. Closing...
Hello, When trying to use the ScopedCssBaseline module, I get runtime error: