mathieustan / vue-datepicker

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

RangeError: Maximum call stack size exceeded #83

Open maniyadv opened 3 years ago

maniyadv commented 3 years ago

This seems related to this closed issue - https://github.com/mathieustan/vue-datepicker/issues/54

Scenario - When user's browser language set to any other language than English, date picker is unable to initialise. Workaround - Set locale explicitly to english using - :locale="{lang: 'en'}" prop.

RangeError: Maximum call stack size exceeded
  at ? (./node_modules/@mathieustan/vue-datepicker/dist/vue-datepicker.esm.js:5:73274)
  at Xt(./node_modules/@mathieustan/vue-datepicker/dist/vue-datepicker.esm.js:5:73274)
  at Xt(./node_modules/@mathieustan/vue-datepicker/dist/vue-datepicker.esm.js:5:73444)
colesnic89 commented 3 years ago

This seems related to this closed issue - #54

Scenario - When user's browser language set to any other language than English, date picker is unable to initialise. Workaround - Set locale explicitly to english using - :locale="{lang: 'en'}" prop.

RangeError: Maximum call stack size exceeded
  at ? (./node_modules/@mathieustan/vue-datepicker/dist/vue-datepicker.esm.js:5:73274)
  at Xt(./node_modules/@mathieustan/vue-datepicker/dist/vue-datepicker.esm.js:5:73274)
  at Xt(./node_modules/@mathieustan/vue-datepicker/dist/vue-datepicker.esm.js:5:73444)

For Russian language all is ok. But for Romanian I have the same error

ItsJoeTurner commented 3 years ago

Has anyone found a real solution for this? The numbers do not show for some of my users outside the UK even with lang: 'en' selected.

maniyadv commented 3 years ago

Has anyone found a real solution for this? The numbers do not show for some of my users outside the UK even with lang: 'en' selected.

In case you are not already doing it, make sure you use v-bind on the prop by using - :locale="{lang: 'en'}" or v-bind:locale="{lang: 'en'}" So that it receives object instead of string. That way it worked fine for me.