dmtrKovalenko / date-io

Abstraction over common javascript date management libraries
MIT License
727 stars 90 forks source link

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

Open JoseMariani opened 10 months ago

JoseMariani commented 10 months ago

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 commented 10 months ago

You likely need date-io v2