Skip to content

esm import fails #14

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, ]

No activity

Activity on this issue will appear here.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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