gpt-engineer icon indicating copy to clipboard operation
gpt-engineer copied to clipboard

Ability to resume after an error occurs

Open danb235 opened this issue 2 years ago • 6 comments

I didn't see a way to do this, apologies if it is described somewhere. I am attempting to build an application and I noticed any time it exits due to an error the process stops and then I'm stuck. So for example:

...
npm install

To run the codebase:

npm run dev

Do you want to execute this code?

npm install

npm run dev


If yes, press enter. Otherwise, type "no"


Executing the code...

npm WARN deprecated @types/[email protected]: Types for the Google Maps browser API have moved to @types/google.maps. Note: these types are not for the googlemaps npm package, which is a Node API.
npm WARN deprecated @material-ui/[email protected]: Material UI v4 doesn't receive active development since September 2021. See the guide https://mui.com/material-ui/migration/migration-v4/ to upgrade to v5.
npm WARN deprecated @material-ui/[email protected]: Material UI v4 doesn't receive active development since September 2021. See the guide https://mui.com/material-ui/migration/migration-v4/ to upgrade to v5.

added 39 packages, removed 347 packages, and audited 354 packages in 5s

44 packages are looking for funding
  run `npm fund` for details

5 critical severity vulnerabilities

To address all issues (including breaking changes), run:
  npm audit fix --force

Run `npm audit` for details.

> [email protected] dev
> next dev

ready - started server on 0.0.0.0:3000, url: http://localhost:3000
info  - Using webpack 5. Reason: Enabled by default https://nextjs.org/docs/messages/webpack5
It looks like you're trying to use TypeScript but do not have the required package(s) installed.

Please install @types/react by running:

        yarn add --dev @types/react

If you are not trying to use TypeScript, please remove the tsconfig.json file from your package root (and any TypeScript files in your pages directory).

(venv) ➜  gpt-engineer git:(main) ✗    

Notice the typescript error above, and the process ends and I'm back at the command prompt. Is it possible to resume after adding the missing package with yarn add --dev @types/react? If not, it'd be a great feature.

danb235 avatar Jun 19 '23 21:06 danb235

I run into this issue multiple times. Still trying to find a way to resume work =/

juarezjl avatar Jun 19 '23 23:06 juarezjl

same here

keshav55 avatar Jun 20 '23 01:06 keshav55

same

mehyar500 avatar Jun 20 '23 23:06 mehyar500

Please have anyone find a solution to this error I also get the same error when building nodejs or react app

buziyborni avatar Jun 25 '23 07:06 buziyborni

re-verify .json dependicies and versions to your add-ons plugins in the package.json file are compaitble with one another.

If you never did it clear your package cache

npm cache clean --force

and aside from that I'm not really sure because you are doing what you need to do correctly from what I am seeing so I am kind of confused.

make sure the tsconfig is properly set up and includes all necessary typescript settings.

If there's any more errors you see post them here and I will try to look into them deeper, hopefully someone got this worked out !

vVv-Keys avatar Jul 04 '23 11:07 vVv-Keys

Solution to this should be to check reason the completion ended from chatgpt, and depending on the reason immediately continue I think

AntonOsika avatar Jul 08 '23 15:07 AntonOsika

Closing this stale thread for house keeping.

ATheorell avatar Sep 12 '23 09:09 ATheorell