Closed hamedhossani closed 5 years ago
Please add the stacktrace and if possible a minimal reproducible example.
I follow up on @eps1lon's comment. We can't help without a minimal reproduction example. We are happy to reopen the issue once you have one.
when i use <List> <ListItem>
in <DialogContent>
that error is showed.
https://stackoverflow.com/questions/53445921/how-can-i-resolve-this-error-cannot-read-property-muiname-of-undefined-at-t-is
Hey @hamedhossani the answer here can help you https://stackoverflow.com/a/59529633/8124496
I also had the same issue when trying to wrap the TextField
component, here was my code snippet code
const TextInput = ({ variant, id, label, autoFocus, isRequired, multiline, rows }) => {
return (
<div>
<TextField
fullWidth
margin="normal"
variant={variant}
required={isRequired}
id={id}
name={id}
autoComplete={id}
label={label}
autoFocus={autoFocus}
multiline={multiline}
rows={rows}
/>
</div>
);
};
TextInput.propTypes = {
id: PropTypes.string.isRequired,
label: PropTypes.string.isRequired,
variant: PropTypes.string,
autoFocus: PropTypes.bool,
isRequired: PropTypes.bool,
multiline: PropTypes.bool,
rows: PropTypes.string,
};
TextInput.defaultProps = {
variant: 'outline',
autoFocus: false,
isRequired: true,
multiline: false,
rows: '6',
};
I realized that I did not properly write the value for the variant
props. It should be outlined
instead of outline
. Correcting this typo error fixed the issue.
So, check your property values. This type of error may be also coming from there.
hey im from the future and still having the same error even after correcting outline to outlined, I mean the browser is showing the needed view but in the devTools in the console, the huuuuugest error occured is it because of the conflict between the versions ?
Hi, I have this problem when browse in chrome. this is my
package.json