Skip to content

Turn deprecation warnings into logs #15397

@fzaninotto

Description

@fzaninotto

Deprecation warnings in the latest 3.x versions make my app look like it's broken, while it works perfectly. I know that these warnings only appear in development, however they bring a lot of noise and potentially hide real errors.

Is it possible to turn these warnings into console.log() messages instead of console.error()?

  • This is not a v0.x issue.
  • I have searched the issues of this repository and believe that this is not a duplicate.

Expected Behavior 🤔

Use code from 3.0 with the latest 3.x without error (because of semver)

Current Behavior 😯

Using an old Typography variant (like <Typography variant="title" />), or a <TableCell numeric />, or a raised Button raises error in the console:

image

Context 🔦

I'm migrating react-admin from material-ui v1 to material-ui v3 (cf marmelab/react-admin#3102). And I can't find a syntax that works for both versions :(

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions