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

Attempted import error: 'addDays' is not exported from 'date-fns/addDays #659

Open
JoseMariani opened this issue Jan 31, 2024 · 1 comment

Comments

@JoseMariani
Copy link

JoseMariani commented Jan 31, 2024

i try to run my react app,but i receive thiserror to copiled, i try diferents version of date-fns, date-io,and nothing can resolve, i using react 16.13.1 and node 16.20.1.

Please any help? this is my package.json:

"dependencies": {
"@date-io/date-fns": "^3.0.0",
"@material-ui/core": "^4.12.4",
"@material-ui/icons": "^4.9.1",
"@material-ui/lab": "^4.0.0-alpha.56",
"@react-pdf/layout": "3.6.4",
"@react-pdf/renderer": "3.1.14",
"@testing-library/jest-dom": "^5.11.4",
"@testing-library/react": "^11.0.4",
"@testing-library/user-event": "^12.1.7",
"axios": "^0.21.1",
"date-fns": "^2.16.1",
"date-fns-tz": "1.0.7",
"emoji-mart": "^3.0.1",
"formik": "^2.2.0",
"html2canvas": "^1.4.1",
"i18next": "^19.8.2",
"i18next-browser-languagedetector": "^6.0.1",
"jspdf": "^2.5.1",
"markdown-to-jsx": "^7.1.0",
"material-ui-color": "^1.2.0",
"mic-recorder-to-mp3": "^2.2.2",
"moment": "^2.30.1",
"mui-audio-player": "^1.0.1",
"mui-datatables": "^3.8.5",
"qrcode.react": "^1.0.0",
"react": "^16.13.1",
"react-color": "^2.19.3",
"react-csv": "^2.2.2",
"react-dnd": "^7.3.0",
"react-dom": "^16.13.1",
"react-modal-image": "^2.5.0",
"react-pdf": "7.7.0",
"react-router-dom": "5.3.4",
"react-scripts": "3.4.3",
"react-toastify": "^6.0.9",
"recharts": "^2.0.2",
"socket.io-client": "^3.0.5",
"use-sound": "^2.0.1",
"yup": "^0.32.8"

@dmtrKovalenko
Copy link
Owner

You likely need date-io v2

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

2 participants