ottomated / turtle-gambit

[OLD] code to connect to minecraft turtles
234 stars 64 forks source link

Errors on running with yarn dev #19

Closed NoozAbooz closed 3 years ago

NoozAbooz commented 3 years ago

Hello! First of all, I saw https://github.com/ottomated/turtle-gambit/issues/3 and https://github.com/ottomated/turtle-gambit/issues/7. I did apply the fixes mentioned in them are they were quite helpful.

Problem is, I get this issue when running it now

yarn run v1.22.10Downloads\turtle-gambit>yarn dev
warning ..\..\package.json: No license field
$ tsc && node lib/index.js
ERROR: The process with PID 18328 (child process of PID 9764) could not be terminated.
Reason: There is no running instance of the task.
ERROR: The process with PID 12828 (child process of PID 9764) could not be terminated.
Reason: There is no running instance of the task.
node:internal/process/promises:227
          triggerUncaughtException(err, true /* fromPromise */);
          ^

Error: net::ERR_CONNECTION_REFUSED at http://localhost:3000/
    at navigate (C:\Users\mobilegmYT\Downloads\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:101:37)
    at processTicksAndRejections (node:internal/process/task_queues:93:5)
    at async FrameManager.navigateFrame (C:\Users\mobilegmYT\Downloads\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:75:17)
    at async Frame.goto (C:\Users\mobilegmYT\Downloads\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\FrameManager.js:385:12)
    at async Page.goto (C:\Users\mobilegmYT\Downloads\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\Page.js:662:12)
    at async Window.load (C:\Users\mobilegmYT\Downloads\turtle-gambit\node_modules\carlo\lib\carlo.js:347:5)
  -- ASYNC --
    at Frame.<anonymous> (C:\Users\Michael\Downloads\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\helper.js:108:27)
    at Page.goto (C:\Users\mobilegmYT\Downloads\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\Page.js:662:49)
    at Page.<anonymous> (C:\Users\mobilegmYT\Downloads\turtle-gambit\node_modules\carlo\node_modules\puppeteer-core\lib\helper.js:109:23)
    at Window.load (C:\Users\mobilegmYT\Downloads\turtle-gambit\node_modules\carlo\lib\carlo.js:347:22)
    at processTicksAndRejections (node:internal/process/task_queues:93:5)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

It doesn't seem to be like any of the other errors people have gotten.

Myoozik commented 3 years ago

Run the following commands as shown below

  1. run yarn dev in Turtle-Gambit\frontend\
  2. run yarn dev in Turtle-Gambit\
NoozAbooz commented 3 years ago

image

NoozAbooz commented 3 years ago

Wait nvm, I forgot to install react.

NoozAbooz commented 3 years ago

Ayy I got it working! Thanks for the help! image