Skip to content

node-apk is not ESM (document destructured import statement won't work). #8

@KaKi87

Description

@KaKi87

Hello,

README says node-apk can be imported as if it was ESM :

import { Apk } from 'node-apk';

But it's not, so this code throws the Named export 'Apk' not found error.

Therefore, it must be imported the following way from an ESM project :

import APK from 'node-apk';
const { Apk } = APK;

Or the following way from a CJS project :

const { Apk } = require('node-apk');

Please update the documentation accordingly.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions