Skip to content

Unable to import module in Typescript #22

@krishnaTORQUE

Description

@krishnaTORQUE

Error
Error [ERR_REQUIRE_ESM]: require() of ES Module

Code
import {convert} from 'cashify';

const { convert }: any = await import('cashify');

const convert: any = (await import('cashify')).convert;

None of those examples above working.

Is there anyone facing this issue ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions