gpt-engineer
gpt-engineer copied to clipboard
Ability to resume after an error occurs
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.
I run into this issue multiple times. Still trying to find a way to resume work =/
same here
same
Please have anyone find a solution to this error I also get the same error when building nodejs or react app
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 !
Solution to this should be to check reason the completion ended from chatgpt, and depending on the reason immediately continue I think
Closing this stale thread for house keeping.