domeccleston / langchain-ts-starter

Langchain.js template to get started quickly
168 stars 98 forks source link

When I run 'npm start', it prints 'Headers is not defined'. I can run 'npx turbo run build lint format' successfully. #9

Closed Clifforid closed 1 year ago

Clifforid commented 1 year ago

ReferenceError: Headers is not defined at createRequest (/Users/zhangchaoqun/Developer/study/langchain/langchain-ts-starter/node_modules/langchain/src/util/axios-fetch-adapter.js:273:19) at fetchAdapter (/Users/zhangchaoqun/Developer/study/langchain/langchain-ts-starter/node_modules/langchain/src/util/axios-fetch-adapter.js:196:19) at dispatchRequest (/Users/zhangchaoqun/Developer/study/langchain/langchain-ts-starter/node_modules/axios/lib/core/dispatchRequest.js:58:10) at Axios.request (/Users/zhangchaoqun/Developer/study/langchain/langchain-ts-starter/node_modules/axios/lib/core/Axios.js:108:15) at Function.wrap (/Users/zhangchaoqun/Developer/study/langchain/langchain-ts-starter/node_modules/axios/lib/helpers/bind.js:9:15) at (/Users/zhangchaoqun/Developer/study/langchain/langchain-ts-starter/node_modules/openai/dist/common.js:149:22) at (/Users/zhangchaoqun/Developer/study/langchain/langchain-ts-starter/node_modules/openai/dist/api.js:1740:133)

manjeshpv commented 4 months ago

getting same issue