Skip to content

esm import fails #14

@rfdrake27

Description

@rfdrake27

Targeting esnext, importing

import ManyUpdatePlugin from 'postgraphile-plugin-many-create-update-delete';

and then using it in the appendPlugin array,
appendPlugins: [ ManyUpdatePlugin, ]

will fail with the error that the appendPlugins param accepts functions, but the plugin is attempting to pass an object. However, the Typescript type is a Plugin.

If you ignore typescript warnings and import the plugin's default key, it will build appropriately:

appendPlugins: [ // @ts-ignore ManyUpdatePlugin.default, ]

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