-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Fatal error in Node due to named import from uuid library #1139
Comments
Hi, that is actually an issue in your local setup, check here https://www.npmjs.com/package/uuid?activeTab=code, look at the file In any case I've updated the |
@nfcampos thanks for the fix, but fyi the issue was that the module was importing i couldn't quite figure it out (no known way to debug this), but it was a special case. |
@nfcampos reopen this issue, is related to this bug: the error is now:
|
That sounds like an issue with your local setup, we test this in CI before every release and it works, if you look through the issue you linked you'll see that the issue is not with |
@nfcampos not an issue, im simply running esbuild to transpile |
@nfcampos thank you... ok, i've actually switched to TSX because it uses a custom resolver which works 🤷 its still an edge-case bug with uuid, but also a legacy nodejs issue for the future of this library, i respectfully suggest considering reducing the amount of sub-dependencies where possible. that way you don't end up in the same kludge as webpack and similar libs |
Yea I agree, we want to have as little required dependencies (optional dependencies are inevitable given the nature of the library, but they're handled in a way where they don't bother people who don't use them), it's on my mind to review/reduce them further |
Appears you guys are requesting a named export from a commonjs module: uuid
in this file:
https://github.com/hwchase17/langchainjs/blob/main/langchain/src/vectorstores/pinecone.ts
on my dev setup, which uses Vite and standard ESM tooling:
If you're going to use uuid native libs, then i think best way to do this is wildcard import
The text was updated successfully, but these errors were encountered: