You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
Error is below. I'm using WSL. But it doesn't work on just Windows 10 either. Node versions 18, 20 and 23 tried.
The text was updated successfully, but these errors were encountered: