How to use Link components in Menu.List elements
You need use the SUIR’s augmentation: <Menu.Item as={ Link } name=”profile” to=’profile’> <Icon name=”user” /> My profile </Menu.Item>
You need use the SUIR’s augmentation: <Menu.Item as={ Link } name=”profile” to=’profile’> <Icon name=”user” /> My profile </Menu.Item>
This warning was fixed for me by adding an .babelrc file in the project main folder, with the following content: { “presets”: [“next/babel”], “plugins”: [[“styled-components”, { “ssr”: true }]] } See following link for an example: https://github.com/nblthree/nextjs-with-material-ui-and-styled-components/blob/master/.babelrc