Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RangeError: Maximum call stack size exceeded #83

Open
maniyadv opened this issue Mar 8, 2021 · 3 comments
Open

RangeError: Maximum call stack size exceeded #83

maniyadv opened this issue Mar 8, 2021 · 3 comments

Comments

@maniyadv
Copy link

maniyadv commented Mar 8, 2021

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)
@colesnic89
Copy link

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
Copy link

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
Copy link
Author

maniyadv commented Jun 3, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants