Skip to content

Next.js 16 Support #47109

@SamuelTrew

Description

@SamuelTrew

Summary

With the release of Next.js 16, the AppRouterCacheProvider does not have a compatible version.

Looking at the source code for the v15, I think a new implementation would be needed due to client/server errors.

I would get the follow error:
Functions cannot be passed directly to Client Components unless you explicitly expose it by marking it with "use server".

The part it complained about was ... component={function LinkComponent} ...

Examples

Current latest version https://github.com/mui/material-ui/tree/master/packages%2Fmui-material-nextjs%2Fsrc%2Fv15-appRouter which links to a v13 version.

Motivation

Upgrading to Next.js 16 doesn't appear to be possible without a change

Search keywords: Next.js, material-nextjs, 16

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions