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

fix: sentences are probably undefined #119

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

vellengs
Copy link

sentences probably is undefined.

translate error TypeError: Cannot read properties of undefined (reading 'filter')
    at Translator.buildResText (/xxxxxxxx/node_modules/@vitalets/google-translate-api/src/index.ts:67:8)
    at Translator.translate (/xxxxxxx/node_modules/@vitalets/google-translate-api/src/index.ts:29:23)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async translate (/xxxxxxxx/src/utils/Translator.ts:19:20)
    at async batchTranslate (/xxxxxxxxx/src/en.wikipedia.org/transforms/index.ts:19:20)
    at async /xxxxxxxxxx/src/en.wikipedia.org/Military_bases.translate.ts:43:9

sentences probably is undefined.
@vellengs vellengs changed the title Update index.ts fix: sentences probably is undefined Jun 21, 2023
@vellengs vellengs changed the title fix: sentences probably is undefined fix: sentences is probably undefined Jun 21, 2023
@vellengs vellengs changed the title fix: sentences is probably undefined fix: sentences are probably undefined Jun 21, 2023
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

Successfully merging this pull request may close these issues.

1 participant