pgvector / pgvector-node

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

Cannot import library #11

Closed Klingefjord closed 1 year ago

Klingefjord commented 1 year ago

For some reason I cannot import the library even though it is in my node_modules folder (ran npm install pgvector) Screenshot 2023-08-10 at 13 42 09 Screenshot 2023-08-10 at 13 41 56

Using TypeScript.

amine-mf commented 1 year ago

Check the following for a fix : https://github.com/pgvector/pgvector-node/issues/2#issuecomment-1491149793 Please note also my comment down the bottom as you might be in the same situation where changing the moduleResolution is a big piece of work for big projects : https://github.com/pgvector/pgvector-node/issues/2#issuecomment-1682261534

ankane commented 1 year ago

Hi @Klingefjord and @amine-mf, added support for "moduleResolution": "node" in the commit above.

seyfer commented 6 months ago

Using TypeScript.

I have to use it with @ts-ignore at the top of the import, it works.