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

tslib.__spreadArray is not a function when running extraction. #15

Closed
tcitworld opened this issue Feb 1, 2022 · 4 comments
Closed

tslib.__spreadArray is not a function when running extraction. #15

tcitworld opened this issue Feb 1, 2022 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@tcitworld
Copy link
Contributor

Running on 2.0.0-alpha.3

vue-gettext-extract
Input directory: ./src
Output directory: ./src/locale
Output POT file: src/locale/messages.pot
Locales: bn,de,el,en_US,es,fr_FR,fy,gd,gl,id,it,ja,nl,oc,pl,pt_BR,ru,sq,sv,th

Searching: src/**/*.js
Searching: src/**/*.ts
Searching: src/**/*.vue
~project/node_modules/vue3-gettext/dist/bin/gettext_extract.js:274
                filesFlat = allFiles.reduce(function (prev, curr) { return tslib.__spreadArray(tslib.__spreadArray([], prev, true), curr, true); }, []);
                                                                                                     ^

TypeError: tslib.__spreadArray is not a function
    at ~project/node_modules/vue3-gettext/dist/bin/gettext_extract.js:274:102
    at Array.reduce (<anonymous>)
    at ~project/node_modules/vue3-gettext/dist/bin/gettext_extract.js:274:38
    at step (~project/node_modules/tslib/tslib.js:141:27)
    at Object.next (~project/node_modules/tslib/tslib.js:122:57)
    at fulfilled (~project/node_modules/tslib/tslib.js:112:62)

Seems related to microsoft/tslib#149

@tcitworld
Copy link
Contributor Author

I fixed it by bumping dependencies in #16

@lzurbriggen lzurbriggen added the bug Something isn't working label Feb 2, 2022
@lzurbriggen lzurbriggen self-assigned this Feb 2, 2022
@lzurbriggen
Copy link
Collaborator

@tcitworld I coudn't easily reproduce this, but I released v2.0.0-beta.1 with the bumped dependencies.

Please let me know if the issue persists.

@lzurbriggen
Copy link
Collaborator

I reproduced the issue in one of our projects -> reopen.

@lzurbriggen lzurbriggen reopened this Feb 3, 2022
lzurbriggen added a commit that referenced this issue Feb 4, 2022
@lzurbriggen
Copy link
Collaborator

Fixed in v2.0.0-beta.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants