Closed fahricap closed 1 year ago
Try changing
import PgAggregatesPlugin from "@graphile/pg-aggregates";
to
import * as PgAggregatesPlugin from "@graphile/pg-aggregates";
Seems like an ESM/TypeScript/Babel/something misconfiguration issue.
Not sure this plugin is being bundled for ESM correctly. Putting this in the plugins list fixed it for me:
import PgAggregatesPlugin from '@graphile/pg-aggregates'
...
(PgAggregatesPlugin as any).default
This is fixed in V5.
Getting when using "PgAggregatesPlugin" plugin.
The issue does not happen when using another plugin. It might also be related to the one mentioned here [https://github.com/graphile-contrib/pg-many-to-many/issues/64] mentioned for "pg-many-to-many" plugin.
The code for which I'm getting the exception.
And library versions: