Skip to content

CJS import broken due to type field in package.json #61

Description

@IsAvaible

Dear Ionic Team,

Currently, it's not possible to import the project via CommonJS in a Typescript environment, as the type: "module" declaration in the package.json breaks the dual environments export. When type: "module" is set all import statements of .js files are treated as ES modules.

To fix this bug, the type: "module" declaration needs to be removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    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