charliekassel / vuejs-datepicker

A simple Vue.js datepicker component. Supports disabling of dates, inline mode, translations
MIT License
2.61k stars 730 forks source link

Does this project work with Vue 3? #845

Closed pajtai closed 3 years ago

pajtai commented 3 years ago

When I try and npm install, I get the error:

❯ npm i vuejs-datepicker
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: app@0.1.0
npm ERR! Found: vue@3.0.11
npm ERR! node_modules/vue
npm ERR!   vue@"^3.0.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer vue@"^2.6.10" from vuejs-datepicker@1.6.2
npm ERR! node_modules/vuejs-datepicker
npm ERR!   vuejs-datepicker@"*" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/pajtai/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/pajtai/.npm/_logs/2021-05-18T21_10_55_409Z-debug.log

Looks like there's a peer dependency in the package.json

  "peerDependencies": {
    "vue": "^2.6.10"
  },
pajtai commented 3 years ago

Looks like this project was forked to create a Vue 3 implementation: https://github.com/icehaunter/vuejs-datepicker

robbienohra commented 2 years ago

Not sure why this was closed. 🤔 Unless I'm mistaken the linked fork does not make any reference to Vue 3.

robbienohra commented 2 years ago

Ah nvm disregard: https://icehaunter.github.io/vue3-datepicker/