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

Can't import the named export 'startOfWeek' from non EcmaScript module (only default export is available) #4795

Open
pd21 opened this issue May 16, 2024 · 0 comments

Comments

@pd21
Copy link

pd21 commented May 16, 2024

Describe the bug
We created a repo using create-react-app with the below versions.
image

On using react-datepicker ( version 6.0.0 ) we are getting an error
image

Note:
This error is not reproducible with react-datepicker: "6.0.0" , react-scripts: "^5.0.1"
This error is not reproducible with react-datepicker: "4.12.0"

To Reproduce

  • npx create-react-app my-app
  • Update the versions in package.json
    "react": "^16.8.0",
    "react-datepicker": "^6.0.0",
    "react-dom": "^16.8.0",
    "react-scripts": "^4.0.3",
  • Install react-datepicker library https://www.npmjs.com/package/react-datepicker
  • Use the datepicker in App.js

Expected behavior

  • npm run start should work withour any errors

Desktop (please complete the following information):

  • OS: [e.g. iOS]

  • Reproducible in chrome,firefox

  • Device

  • Windows

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