Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error expected function, found 'object' error when running postgraphile in cli mode #12

Open
RuiLoureiro opened this issue Mar 17, 2022 · 0 comments
Assignees

Comments

@RuiLoureiro
Copy link

Describe the bug
When running postgraphile in cli mode, with --append-plugins postgraphile-remove-foreign-key-fields-plugin, I get the error
Error: No plugin found matching spec 'postgraphile-remove-foreign-key-fields-plugin' - expected function, found 'object'.

If I purposefully misspell the package name, the error is different, so I believe it is finding the plugin.

To Reproduce
Steps to reproduce the behavior:

  1. run npm install postgraphile-remove-foreign-key-fields-plugin`
  2. run npx postgraphile --append-plugins postgraphile-remove-foreign-key-fields-plugin

Expected behavior
Postgraphile should run normally

Additional context

  • postgraphile version 4.12.9
  • plugin version 1.2.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants