-
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
Module not found: Can't resolve 'path' on NextJS edge
runtime.
#994
Comments
See https://github.com/hwchase17/langchainjs/tree/main/test-exports-vercel for a working example |
yep, I use the Next13 |
Me too. |
I believe it's because of this line: Not sure why - maybe Next.js 13 app dir route handlers with Commenting this line fixes the error. @nfcampos should tiktoken work with langchain on the edge or should we be skipping imports of it? Version: 0.0.64 |
Hello! That definitely sounds like an issue with @dqbd/tiktoken, will address it as soon as possible. |
Cool, thank you! |
Thanks @dqbd ! This has been released as 0.0.66 |
Summary
When running langchainjs on the
edge
runtime in NextJS I see the following exception:Currently running version
0.0.63
.The text was updated successfully, but these errors were encountered: