pgvector / pgvector-node

pgvector support for Node.js, Deno, and Bun (and TypeScript)
MIT License
303 stars 9 forks source link

Unable to use package with ESM due to manual exports in package.json #5

Closed pnutmath closed 1 year ago

pnutmath commented 1 year ago

I'm trying to use the package in an ESM project, but I am encountering an issue due to the manual specification of exports in the package.json file. The error message I receive is:

error: Package subpath './sequelize' is not defined by "exports" in `/node_modules/pgvector/package.json`

This is causing problems when trying to import specific files or submodules in an ESM environment. I believe this issue could be resolved by updating the package.json file to provide more flexible export options or by providing a separate ESM build.

Is there any plan to address this issue, or are there any workarounds that you could suggest? Your assistance would be much appreciated.