Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

floating-ui.react-dom issue #4970

Open
Shweta-rajput opened this issue Jul 14, 2024 · 0 comments
Open

floating-ui.react-dom issue #4970

Shweta-rajput opened this issue Jul 14, 2024 · 0 comments

Comments

@Shweta-rajput
Copy link

Describe the bug
I'm using react and react-dom version 18.3.1. If I use react-datepicker version below 6, I'm getting the error: 'Element type expected a string but got an object.' If I use a version greater than 6, I encounter the following error: 'ERROR in ./node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.mjs 154:8-26: export "flushSync" (imported as "ReactDOM") was not found in "react-dom".

Please provide solution.

To Reproduce
I m trying with most simplest code :

`
import DatePicker from 'react-datepicker';
import 'react-datepicker/dist/react-datepicker.css';

console.log("date,,", date)} />
`
  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
Datepicker should behave normally without this error

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Smartphone (please complete the following information):

  • Device: [e.g. iPhone6]
  • OS: [e.g. iOS8.1]
  • Browser [e.g. stock browser, safari]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant