elastic / next-eui-starter

Start building Kibana protoypes quickly with the Next.js EUI Starter
https://elastic.github.io/next-eui-starter/
Apache License 2.0
93 stars 30 forks source link

Upgrade to Next.js 12, EUI 41.3 #47

Closed pugnascotia closed 2 years ago

pugnascotia commented 2 years ago

This PR updates all dependencies ~apart from EUI~. Notably, that means an upgrade of Next.js from v11 to v12. There were surprisingly few changes to make this work. ESLint had to be kept back because Next.js complained about using the latest version. I expect that to be relaxed in the future.

Future PRs:

chandlerprall commented 2 years ago

Code changes LGTM. Spot checked the app locally and it all looks good except this console error after yarn dev:

Screen Shot 2021-11-29 at 11 14 23 AM

This comes from EuiSideNav and is an unconfigurable thing, https://github.com/elastic/eui/blob/main/src/components/side_nav/side_nav.tsx#L188

Thankfully, apart from this warning, nothing breaks (unless you're on a really old react@15 version) and React updates the id + aria-controls appropriately. I've opened https://github.com/elastic/eui/issues/5418 to track this, and an SSR meta issue in EUI as well https://github.com/elastic/eui/issues/5419