mathieustan / vue-datepicker

A clean datepicker made with VueJs
https://vue-datepicker.netlify.com/
MIT License
165 stars 47 forks source link

InternalError: too much recursion error on webpage #81

Open nuriakman opened 3 years ago

nuriakman commented 3 years ago

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

Aviking88 commented 3 years ago

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

yemanjo commented 3 years ago

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

Did you find proper workaround?

Aviking88 commented 3 years ago

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

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

Mateis commented 2 years ago

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 commented 2 years ago

these issues are related:

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