#util/convex is not exported by package "langchain"

32 messages · Page 1 of 1 (latest)

main mantle
#

I have this error. I use tutorial for some llm staff. i need create in folder convex - folder langchain and write this code export * from "langchain/util/convex";
but i have problem - Cannot find module 'langchain/util/convex' or its corresponding type declarations.ts(2307)

kind sable
#

Do you have langchain community installed

heady falcon
#

I think langchain automatically installs that

#

should just need to npm i langchain

#

hmm maybe not looking at the source

main mantle
heady falcon
#

it would be in your node_modules, not your project source

heady falcon
#

I think v is right, you'll need to install @langchain/community explicitly, just curious why the convex tutorial and example repo doesn't mention this

kind sable
#

I'm going to boot up on PC and see

main mantle
# heady falcon I think v is right, you'll need to install @langchain/community explicitly, just...

i install langchain and langchain/community too ``` "@langchain/community": "^0.2.20",
"@langchain/openai": "^0.2.4",
"@radix-ui/react-dialog": "^1.1.1",
"@radix-ui/react-slot": "^1.1.0",
"ai": "^3.2.35",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"convex": "^1.13.2",
"langchain": "^0.2.10",
"lucide-react": "^0.414.0",
"next": "14.2.4",
"react": "^18",
"react-dom": "^18",
"tailwind-merge": "^2.4.0",
"tailwindcss-animate": "^1.0.7"

kind sable
#

Hmmm

oblique ingot
heady falcon
#

That's package locked directly to 0.0.189, I believe that semver range will currently resolve to latest (0.2), which has this issue. May need to pin 0.0.189.

#

But pretty sure it's not broken, just dependencies have moved.

main mantle
#

maybe changed path

heady falcon
#

@main mantle try export * from '@langchain/community/util/convex

#

actually it's "utils", plural

kind sable
main mantle
kind sable
#

export * from "@langchain/community/utils/convex";

#

does this not work for you?

main mantle
kind sable
#

also langchain

kind sable
#

i was just repeating what he said, hes the goat

main mantle
#

thanks guys, now my app working. convex and langchain fix this pls

kind sable
#

i made an issue on the langchain github

#

ig i could make a pr

kind sable