You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
info Linting and checking validity of types ..Failed to compile.
./pages/_app.tsx:20:6
Type error: 'CacheProvider' cannot be used as a JSX component.
Its return type 'ReactNode' is not a valid JSX element.
Type 'undefined' is not assignable to type 'Element | null'.
Seems to be related to the changes in the latest version of @types/react. I'll check if this can be fixed in the example or do we need to wait for upstream fixes in emotion. Here's a temporary workaround suggested that can be added so that next build command works without any failure.
oliviertassinari
changed the title
Failed to compile /examples/material-next-ts
Failed to compile /examples/material-ui-nextjs-pages-router-ts
Jan 17, 2024
yarn build
./pages/_app.tsx:20:6
Type error: 'CacheProvider' cannot be used as a JSX component.
Its return type 'ReactNode' is not a valid JSX element.
Type 'undefined' is not assignable to type 'Element | null'.
The text was updated successfully, but these errors were encountered: