-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
Error is below. I'm using WSL. But it doesn't work on just Windows 10 either. Node versions 18, 20 and 23 tried.
⨯ ./node_modules/cheerio/node_modules/undici/lib/web/fetch/util.js
Module parse failed: Unexpected token (860:57)
| // 5. If object is not a default iterator object for interface,
| // then throw a TypeError.
> if (typeof this !== 'object' || this === null || !(#target in this)) {
| throw new TypeError(
| `'next' called on an object that does not implement interface ${name} Iterator.`
Import trace for requested module:
./node_modules/cheerio/node_modules/undici/lib/web/fetch/util.js
./node_modules/cheerio/node_modules/undici/lib/web/fetch/response.js
./node_modules/cheerio/node_modules/undici/index.js
./node_modules/cheerio/dist/esm/index.js
./node_modules/@langchain/community/dist/document_loaders/web/cheerio.js
./node_modules/@langchain/community/document_loaders/web/cheerio.js
./node_modules/@upstash/rag-chat/dist/base/index.mjs
./src/utils/rag-chat.ts
./src/app/api/chat/route.ts
⨯ ./node_modules/cheerio/node_modules/undici/lib/web/fetch/util.js
Module parse failed: Unexpected token (860:57)
| // 5. If object is not a default iterator object for interface,
| // then throw a TypeError.
> if (typeof this !== 'object' || this === null || !(#target in this)) {
| throw new TypeError(
| `'next' called on an object that does not implement interface ${name} Iterator.`
Import trace for requested module:
./node_modules/cheerio/node_modules/undici/lib/web/fetch/util.js
./node_modules/cheerio/node_modules/undici/lib/web/fetch/index.js
./node_modules/cheerio/node_modules/undici/index.js
./node_modules/cheerio/dist/esm/index.js
./node_modules/@langchain/community/dist/document_loaders/web/cheerio.js
./node_modules/@langchain/community/document_loaders/web/cheerio.js
./node_modules/@upstash/rag-chat/dist/base/index.mjs
./src/utils/rag-chat.ts
./src/app/api/chat/route.ts
⨯ ./node_modules/cheerio/node_modules/undici/lib/web/fetch/util.js
Module parse failed: Unexpected token (860:57)
| // 5. If object is not a default iterator object for interface,
| // then throw a TypeError.
> if (typeof this !== 'object' || this === null || !(#target in this)) {
| throw new TypeError(
| `'next' called on an object that does not implement interface ${name} Iterator.`
Import trace for requested module:
./node_modules/cheerio/node_modules/undici/lib/web/fetch/util.js
./node_modules/cheerio/node_modules/undici/lib/web/fetch/index.js
./node_modules/cheerio/node_modules/undici/index.js
./node_modules/cheerio/dist/esm/index.js
./node_modules/@langchain/community/dist/document_loaders/web/cheerio.js
./node_modules/@langchain/community/document_loaders/web/cheerio.js
./node_modules/@upstash/rag-chat/dist/base/index.mjs
./src/utils/rag-chat.ts
./src/app/api/chat/route.ts
"@upstash/rag-chat": "^1.0.2",
"@upstash/redis": "^1.34.3",
"@upstash/vector": "^1.1.4",
"@vercel/node": "^3.2.1",
"ai": "^3.2.16",
"ai-stream-experimental": "^2.2.2",
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels