You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { makeStyles } from 'tss-react/mui';
import { tableFilterStyles } from "../../styles";
const useStyles = makeStyles()(tableFilterStyles);
....
For some particular reason Typescript doesn't like the position.relative object. "Type 'string' is not assignable to type '"relative"
Everything else works expect "position".
I guess I need to add a return type to the tableFilterStyles function, maybe cssObjectByRuleNameOrGetCssObjectByRuleName?
Hey,
I'm currently migrating from MUI 4 to version 5 and have encountered some weird behaviour.
I've got a two files
tableFilterStyles.ts
andTableFilter.tsx
containingtableFilterStyles.ts
TableFilter.tsx
For some particular reason Typescript doesn't like the
position.relative
object. "Type 'string' is not assignable to type '"relative"Everything else works expect "position".
I guess I need to add a return type to the
tableFilterStyles
function, maybecssObjectByRuleNameOrGetCssObjectByRuleName
?Do you have any idea?
If I pass the style directly it works
Thanks!
The whole error message;
The text was updated successfully, but these errors were encountered: