We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i'm getting an error in dotnetify-react.js (in loadReactView()):
dotnetify-react.js
loadReactView()
dotnetify-react.js:3766 [AppLayout] failed to load view '[object Object]' because it's not a valid React element.
the component is defined as a styled material-ui component somewhat like this:
const styles = (theme: Theme) => createStyles({ ... }); interface Props extends WithStyles<typeof styles> { ... }; class MyComponentClass extends React.Component<Props> { ... }; export const MyComponent = withStyles(styles)(MyComponentClass);
the check that's failing is:
if (typeof iComponent !== 'function' && ((typeof iComponent === 'undefined' ? 'undefined' : _typeof(iComponent)) !== 'object' || iComponent.name == null)) {
typeof iComponent is "object"
typeof iComponent
"object"
The text was updated successfully, but these errors were encountered:
The check incorrectly expects a React component to always have a name property. For now, the workaround is to add it manually:
name
export const MyComponent = Object.assign(withStyles(styles)(MyComponentClass), { name: '' });
Sorry, something went wrong.
44167e7
No branches or pull requests
i'm getting an error in
dotnetify-react.js
(inloadReactView()
):the component is defined as a styled material-ui component somewhat like this:
the check that's failing is:
typeof iComponent
is"object"
The text was updated successfully, but these errors were encountered: