Skip to content

[TextField] Without id raise warnings with Next.js App Router #38103

@tippfelher

Description

@tippfelher

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Steps to reproduce 🕹

Here is the repository to reproduce the problem: https://github.com/tippfelher/nextjs13-app-dir-mui-textfield

import TextField from '@mui/material/TextField';

export default function Home() {
  return <TextField />;
}

Current behavior 😯

Warning: Prop id' did not match. Server: ": R219mcq:" Client: ": Ral6pj9:"

client and server generate random ids for the textfield which (obviously) never match and cause said error:

image

Expected behavior 🤔

Client and server generate the same id, and no warnings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    component: text fieldThis is the name of the generic UI component, not the React module!docsImprovements or additions to the documentationexternal dependencyBlocked by external dependency, we can’t do anything about itnextjspackage: utilsSpecific to the @mui/utils packagewaiting for 👍Waiting for upvotes. Open for community feedback and needs more interest to be worked on.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions