Replies: 1 comment
-
Oof looks like what I'm using is only available on node js and not the browser |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm following through the guide here to have a React app use Langchain JS: https://js.langchain.com/docs/getting-started/install#browser
I've also gone through https://github.com/dqbd/tiktoken/tree/main/js#create-react-app for installing tiktoken, and setting up my
crago.config.js
file. I'm getting this error below:Here's what my
crago.config.js
file looks like:Here's my
package.json
file:NPM version: 9.4.0
Node version: 19.6.0
React version: 18.2.0
The particular file that's causing the error has this import
import { PDFLoader } from "langchain/document_loaders/fs/pdf";
and nothing else from the Langchain package. How can I fix this?Beta Was this translation helpful? Give feedback.
All reactions