Skip to content

RangeError: Maximum call stack size exceeded when use vue-i18n and i18n large json #1125

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

Closed
yoyo930021 opened this issue Feb 1, 2019 · 0 comments · Fixed by #1062
Closed
Labels

Comments

@yoyo930021
Copy link
Member

yoyo930021 commented Feb 1, 2019

Version

1.0.0-beta.28

Reproduction link

https://github.com/yoyo930021/vue-i18n-test-utils-reproduction

Steps to reproduce

I use vue-i18n and add vue-i18n to vue-test-utils in jest.
Use more large json in i18n.
And more it function

AppNumberSupporter.spec.ts:
https://github.com/yoyo930021/vue-i18n-test-utils-reproduction/blob/master/tests/unit/AppNumberSupporter.spec.ts

i18n.ts:
https://github.com/yoyo930021/vue-i18n-test-utils-reproduction/blob/master/src/i18n.ts

zh-CN.json:
https://github.com/yoyo930021/vue-i18n-test-utils-reproduction/blob/master/src/locales/langs/zh-CN.json

run yarn test:unit

What is expected?

  ● AppNumberSupporter.vue › return data when click odd

    RangeError: Maximum call stack size exceeded
        at Array.forEach (<anonymous>)

      at orderDeps (node_modules/@vue/test-utils/dist/vue-test-utils.js:2553:16)
          at Array.forEach (<anonymous>)
      at node_modules/@vue/test-utils/dist/vue-test-utils.js:2558:14
          at Array.forEach (<anonymous>)
      at orderDeps (node_modules/@vue/test-utils/dist/vue-test-utils.js:2553:16)
          at Array.forEach (<anonymous>)
      at node_modules/@vue/test-utils/dist/vue-test-utils.js:2558:14

and more duplicate error.

What is actually happening?

PASS Test.


I will try sync: false.
Better than not use, but unsolved.

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

Successfully merging a pull request may close this issue.

2 participants