Skip to content

fix: sentences are probably undefined#119

Open
vellengs wants to merge 1 commit intovitalets:masterfrom
vellengs:patch-1
Open

fix: sentences are probably undefined#119
vellengs wants to merge 1 commit intovitalets:masterfrom
vellengs:patch-1

Conversation

@vellengs
Copy link
Copy Markdown

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