Closed AceFromSpace closed 1 year ago
Hi, @AceFromSpace! I'm Dosu, and I'm helping the gpt4-pdf-chatbot-langchain team manage their backlog. I wanted to let you know that we are marking this issue as stale.
From what I understand, you opened this issue regarding a SyntaxError that occurs when running npm run ingest
. Unfortunately, there haven't been any suggestions or comments on the issue yet.
Before we close this issue, we wanted to check with you if it is still relevant to the latest version of the gpt4-pdf-chatbot-langchain repository. If it is, please let us know by commenting on the issue. Otherwise, feel free to close the issue yourself, or it will be automatically closed in 7 days.
Thank you for your understanding and contribution to the project!
Hi I faced that after running
npm run ingest
any suggestions how to fix it?/home/lukasz/Projekty/gpt4-pdf-chatbot-langchain/node_modules/tsx/dist/cli.js:2 import ys from"tty";import{v as ws}from"./package-69a34105.js";import{r as Dt}from"./pkgroll_create-require-b9328ee2.js";import{pathToFileURL as Rs,fileURLToPath as bs}from"url";import vs from"child_process";import K from"path";import ie from"fs";import Fu,{constants as Bs}from"os";import Ss from"events";import me from"util";import $s from"stream";import"module";const Ts="known-flag",xs="unknown-flag",Os="argument",{stringify:_e}=JSON,Ns=/\B([A-Z])/g,Hs=t=>t.replace(Ns,"-$1").toLowerCase(),{hasOwnProperty:Ps}=Object.prototype,Ae=(t,e)=>Ps.call(t,e),Ls=t=>Array.isArray(t),gu=t=>typeof t=="function"?[t,!1]:Ls(t)?[t[0],!0]:gu(t.type),Is=(t,e)=>t===Boolean?e!=="false":e,ks=(t,e)=>typeof e=="boolean"?e:t===Number&&e===""?Number.NaN:t(e),Ms=/[\s.:=]/,Ws=t=>{const e=
Flag name ${_e(t)}
;if(t.length===0)throw new Error(${e} cannot be empty
);if(t.length===1)throw new Error(${e} must be longer than a character
);const u=t.match(Ms);if(SyntaxError: Unexpected identifier at Module._compile (internal/modules/cjs/loader.js:723:23) at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) at Module.load (internal/modules/cjs/loader.js:653:32) at tryModuleLoad (internal/modules/cjs/loader.js:593:12) at Function.Module._load (internal/modules/cjs/loader.js:585:3) at Function.Module.runMain (internal/modules/cjs/loader.js:831:12) at startup (internal/bootstrap/node.js:283:19) at bootstrapNodeJSCore (internal/bootstrap/node.js:623:3) npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! gpt4-langchain-pdf-chatbot@0.1.0 ingest:
tsx -r dotenv/config scripts/ingest-data.ts
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the gpt4-langchain-pdf-chatbot@0.1.0 ingest script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.npm ERR! A complete log of this run can be found in: npm ERR! /home/lukasz/.npm/_logs/2023-06-03T13_53_32_947Z-debug.log