question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[pickers] Console warning when migrating from the lab

See original GitHub issue

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

I have warnings (in console displayed as errors) after migrating DatePickers from lab to mui-x.

Warning is Warning: forwardRef render functions accept exactly two parameters: props and ref. Did you forget to use the ref parameter?.

I modified all files in the project. No exports from mui/lab.

Maybe it will be helpfully. I use LoadingButton components from @mui-lab.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:10
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

7reactions
kkaplitacommented, Jun 8, 2022

When use imports like this import { LoadingButton } from '@mui/lab'; you see warnings.

When imports like this import LoadingButton from '@mui/lab/LoadingButton'; (not from main index file) errors not will be displayed.

1reaction
aurelien-gaillardcommented, Jun 8, 2022

same issue, after upgrading today to the latest version of mui, mui-lab and x-date-pickers I made the migration 1 month ago, so probably issue is not on migration ❔

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migration from @material-ui/pickers - MUI
To migrate from @mui/lab to @mui/x-date-pickers you can follow the dedicated migration guide. The date picker components were rewritten. In most places, the ......
Read more >
Console warning when migrating from the MaterialUI lab
Don't import Lab components like this. import { LoadingButton } from '@mui/lab'. Use this:.
Read more >
Migrate from UWP to the Windows App SDK with the .NET ...
Migrating from AppWindow-related APIs isn't supported. Where possible, the tool tries to generate a warning; and it intentionally causes your ...
Read more >
Using version control and deploying | Looker - Google Cloud
When Looker shows the merge-conflict warning, it is recommended that you resolve the merge conflict before making any further changes. Pushing a ...
Read more >
Safari Technology Preview Release Notes - Apple Developer
Changed to reject the getDisplayMedia prompt if the system picker times out (253260@main) ... Added a deprecation warning to the console for Web...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found