Skip to content
New issue

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

Fix bug on Sidebar navigation: 'Failed prop type: Invalid prop component supplied to ForwardRef(ButtonBase) #74

Open
asartalo opened this issue Apr 20, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@asartalo
Copy link
Member

asartalo commented Apr 20, 2022

Warning: Failed prop type: Invalid prop `component` supplied to `ForwardRef(ButtonBase)`. Expected an element type that can hold a ref. Did you accidentally provide a plain function component instead? For more information see https://material-ui.com/r/caveat-with-refs-guide
ButtonBase@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:523:16
WithStyles@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:9301:25
ListItem@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:3074:27
WithStyles@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:9301:25
ul
List@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:2849:18
WithStyles@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:9301:25
div
div
div
Transition@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:18881:30
Collapse@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:1491:18
WithStyles@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:9301:25
ExpandableLinks@http://localhost:3000/static/js/src_components_AppWrapper_tsx.chunk.js:691:7
div
List@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:2849:18
WithStyles@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:9301:25
nav
div
Paper@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:4355:17
WithStyles@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:9301:25
Transition@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:18881:30
Slide@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:4658:18
Unstable_TrapFocus@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:5485:18
div
Portal@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:4476:18
Modal@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:3622:78
Drawer@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:2193:23
WithStyles@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:9301:25
Sidebar@http://localhost:3000/static/js/src_components_AppWrapper_tsx.chunk.js:741:7
ThemeProvider@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:8285:18
div
PrintablesAppBar@http://localhost:3000/static/js/src_components_AppWrapper_tsx.chunk.js:411:7
ThemeProvider@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:8285:18
Router@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:17932:7
BrowserRouter@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:17405:7
AppWrapper@http://localhost:3000/static/js/src_components_AppWrapper_tsx.chunk.js:62:19
Suspense

And

Warning: Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?

Check the render method of `ForwardRef(ButtonBase)`.
ListItemLink@http://localhost:3000/static/js/src_components_AppWrapper_tsx.chunk.js:283:7
ButtonBase@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:523:16
WithStyles@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:9301:25
ListItem@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:3074:27
WithStyles@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:9301:25
ul
List@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:2849:18
WithStyles@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:9301:25
div
div
div
Transition@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:18881:30
Collapse@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:1491:18
WithStyles@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:9301:25
ExpandableLinks@http://localhost:3000/static/js/src_components_AppWrapper_tsx.chunk.js:691:7
div
List@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:2849:18
WithStyles@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:9301:25
nav
div
Paper@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:4355:17
WithStyles@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:9301:25
Transition@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:18881:30
Slide@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:4658:18
Unstable_TrapFocus@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:5485:18
div
Portal@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:4476:18
Modal@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:3622:78
Drawer@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:2193:23
WithStyles@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:9301:25
Sidebar@http://localhost:3000/static/js/src_components_AppWrapper_tsx.chunk.js:741:7
ThemeProvider@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:8285:18
div
PrintablesAppBar@http://localhost:3000/static/js/src_components_AppWrapper_tsx.chunk.js:411:7
ThemeProvider@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:8285:18
Router@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:17932:7
BrowserRouter@http://localhost:3000/static/js/vendors-node_modules_material-ui_core_esm_AppBar_AppBar_js-node_modules_material-ui_core_esm_-dc67ac.chunk.js:17405:7
AppWrapper@http://localhost:3000/static/js/src_components_AppWrapper_tsx.chunk.js:62:19
Suspense
App
@asartalo asartalo added the bug Something isn't working label Apr 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Todo
Development

No branches or pull requests

1 participant