vue-datepicker icon indicating copy to clipboard operation
vue-datepicker copied to clipboard

InternalError: too much recursion error on webpage

Open nuriakman opened this issue 4 years ago • 5 comments

Hi,

I visit https://vue-datepicker.netlify.app/ to how it works. But there was no datepicket on screen.

I checked to console and I see this error:

InternalError: too much recursion isValidLocale vue-datepicker.esm.js:5 getLocale vue-datepicker.esm.js:5 ------> This line repeats more than 1000 time

nuriakman avatar Feb 24 '21 07:02 nuriakman

Faced the same and found the cause, It was happening due to locale.

Aviking88 avatar Mar 08 '21 08:03 Aviking88

Faced the same and found the cause, It was happening due to locale.

Did you find proper workaround?

yemanjo avatar Mar 15 '21 15:03 yemanjo

yes @yemanjo , I have specified lang at the time of registration,

Vue.use(VueDatePicker, { lang: 'en' });

Aviking88 avatar Mar 18 '21 10:03 Aviking88

I have the same problem.

This doesn't help: Vue.use(VueDatePicker, { lang: 'en' });

This does partly: <VueDatePicker v-model="xxx" :locale="{ lang: 'en' }" />

But when I click the selector and it opens the calendar modal, I get the recursion error again. This time in VDPickerTableDay

Version: ^0.2.11 Browser: FireFox

Mateis avatar May 06 '22 14:05 Mateis

these issues are related:

  • https://github.com/mathieustan/vue-datepicker/issues/84
  • https://github.com/mathieustan/vue-datepicker/issues/94

And there is a hotfix here (for Chrome): https://github.com/mathieustan/vue-datepicker/pull/100

Mateis avatar May 06 '22 14:05 Mateis