mathieustan / vue-datepicker

A clean datepicker made with VueJs

Home Page:https://vue-datepicker.netlify.com/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

InternalError: too much recursion error on webpage

nuriakman opened this issue · 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

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

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

Did you find proper workaround?

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

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

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

these issues are related:

And there is a hotfix here (for Chrome): #100