Skip to content

Getting error trying to use in Nest.js backend #52

@jackymyh

Description

@jackymyh
// @ts-ignore
import scribe from 'scribe.js-ocr';

scribe.extractText(file).then((text: string) => {
  console.log('Extracted text:', text);
});

This gives error: require() cannot be used on an ESM graph with top-level await. Use import() instead.

Is there something I am missing?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions