Skip to content

Cannot read properties of undefined (reading 'includes') #42

@CarmeloCampos

Description

@CarmeloCampos

Environment

Cloudflare Worker V8

Reproduction

const pdfBuffer = await fileInfo.file.arrayBuffer();
const { text } = await extractText(pdfBuffer, { mergePages: true });

Describe the bug

TypeError: Cannot read properties of undefined (reading 'includes')
at get platform (index.js:99:81839)
at getDocument (index.js:73:15648)
at getDocumentProxy (index.js:290:108880)
at async extractText$1 (index.js:290:109592)
at async extractText (index.js:292:74)
at async index.js:292:1663
at async a (index.js:1:53149)
at async index.js:1:52286
at async a (index.js:1:53149)
at async index.js:1:52286

Additional context

No response

Logs

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions