Vuepic / vue-datepicker

Datepicker component for Vue 3
https://vue3datepicker.com
MIT License
1.52k stars 152 forks source link

Subdependency issue when using with Nuxt 3.8.0 #634

Closed AngeloSchulerPiletti closed 1 year ago

AngeloSchulerPiletti commented 1 year ago

Describe the bug I am facing the following exceptions when using Vue Datepicker with Nuxt 3.8.0:

[vite-node] [ERR_LOAD_URL] date-fns/parse/index

Cannot find module '../_lib/defaultLocale/index.js' Require stack: - S:\Zytro\customer-dashboard\frontend\date-fns\parse\index

The first one happens when I try to run the project with Vue Datepicker. The second one occurred once I installed the date-fns@2.30.0 on my project (as dev and not dev dependency).

My Vite version is 4.4.9.

I am using SSR.

To Reproduce Steps to reproduce the behavior:

  1. Start a Nuxt 3.8.0 project
  2. Install Vue Datepicker
  3. pnpm dev
  4. See error

Expected behavior I was expecting it to not throw an exception on Vue Datepicker dependency.

Desktop & mobile (please complete the following information):

I really appreciate using Vue Datepicker. I am also not sure if that is a problem related to Vue Datepicker, or if should I configure something else on Vite.

Thank you for your time.

AngeloSchulerPiletti commented 1 year ago

I workaround it by downgrading Vue Datepicker to 7.1.0

djixadin commented 1 year ago

7.2.0 is the latest working version.. its the 7.2.1 changes that brought this bug