question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. ItΒ collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when running code from repo

See original GitHub issue

I have been going through the book now for a few days and have reached Chapter 6. I have tried two ways, the first way was coding along with the book and then refactoring out my code along with the books when you gave the full file of how it should look without the comments. The second way I tried was just reading the book and then moving to each branch that corresponds to the chapter I was on. After the initial β€œHey this is working page” my code wouldn’t compile right nor would it run. The error that I get is below: `Phaser-game (chapter/7) $ npm start

Multiplayer-game@1.0.0 prestart C:\Users\jonat\Desktop\Phaser3 Projects\multiplayer\Multiplayer-Phaser-game npm i && tsc -p ./

fsevents@1.1.1 install C:\Users\jonat\Desktop\Phaser3 Projects\multiplayer\Multiplayer-Phaser-game\node_modules\fsevents node install

added 120 packages and removed 39 packages in 20.004s …/…/…/…/node_modules/@types/prop-types/index.d.ts(32,38): error TS1005: β€˜=’ expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(34,46): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(34,75): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(34,99): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(36,47): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(36,48): error TS1109: Expression expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(36,49): error TS1109: Expression expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(36,76): error TS1109: Expression expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(36,100): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(36,103): error TS1109: Expression expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(36,119): error TS1109: Expression expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(36,144): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(36,152): error TS1128: Declaration or statement expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(36,160): error TS1005: β€˜,’ expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(38,50): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(38,51): error TS1109: Expression expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(38,52): error TS1109: Expression expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(38,69): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(38,71): error TS1128: Declaration or statement expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(51,30): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(51,54): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/prop-types/index.d.ts(51,57): error TS1109: Expression expected. …/…/…/…/node_modules/@types/react/index.d.ts(65,51): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(66,17): error TS1005: β€˜,’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(67,25): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(116,21): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(116,29): error TS1131: Property or signature expected. …/…/…/…/node_modules/@types/react/index.d.ts(116,35): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(116,41): error TS1005: β€˜:’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(116,55): error TS1109: Expression expected. …/…/…/…/node_modules/@types/react/index.d.ts(116,63): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(116,67): error TS1128: Declaration or statement expected. …/…/…/…/node_modules/@types/react/index.d.ts(117,5): error TS1128: Declaration or statement expected. …/…/…/…/node_modules/@types/react/index.d.ts(325,50): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(325,72): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(325,75): error TS1109: Expression expected. …/…/…/…/node_modules/@types/react/index.d.ts(744,15): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(744,29): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(746,13): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(746,16): error TS1005: β€˜)’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(750,15): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(750,29): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(751,17): error TS1005: β€˜:’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(751,31): error TS1109: Expression expected. …/…/…/…/node_modules/@types/react/index.d.ts(751,39): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(752,17): error TS1128: Declaration or statement expected. …/…/…/…/node_modules/@types/react/index.d.ts(752,26): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(753,42): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(753,71): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(754,21): error TS1005: β€˜,’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(755,17): error TS1005: β€˜,’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(756,13): error TS1005: β€˜,’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(756,16): error TS1005: β€˜)’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(765,11): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(765,47): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(766,13): error TS1109: Expression expected. …/…/…/…/node_modules/@types/react/index.d.ts(767,17): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(767,31): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(771,11): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(771,40): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(772,13): error TS1109: Expression expected. …/…/…/…/node_modules/@types/react/index.d.ts(772,34): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(773,13): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(773,46): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(815,56): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(815,78): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(815,86): error TS1109: Expression expected. …/…/…/…/node_modules/@types/react/index.d.ts(816,57): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(816,84): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(816,87): error TS1109: Expression expected. …/…/…/…/node_modules/@types/react/index.d.ts(2686,31): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2688,13): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2688,25): error TS1005: β€˜,’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2690,13): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2691,5): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2691,6): error TS1005: β€˜)’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2720,33): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2720,41): error TS1131: Property or signature expected. …/…/…/…/node_modules/@types/react/index.d.ts(2721,28): error TS1005: β€˜,’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2721,38): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2722,5): error TS1128: Declaration or statement expected. …/…/…/…/node_modules/@types/react/index.d.ts(2761,1): error TS1128: Declaration or statement expected. …/…/…/…/node_modules/@types/react/index.d.ts(2765,32): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2765,43): error TS1005: β€˜)’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2765,71): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2765,73): error TS1128: Declaration or statement expected. …/…/…/…/node_modules/@types/react/index.d.ts(2765,80): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2767,71): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2767,96): error TS1128: Declaration or statement expected. …/…/…/…/node_modules/@types/react/index.d.ts(2767,104): error TS1005: β€˜,’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2773,7): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2775,27): error TS1109: Expression expected. …/…/…/…/node_modules/@types/react/index.d.ts(2777,20): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2777,34): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2779,17): error TS1109: Expression expected. …/…/…/…/node_modules/@types/react/index.d.ts(2781,17): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2783,17): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2784,9): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2784,16): error TS1005: β€˜)’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2790,27): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2791,14): error TS1005: β€˜:’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2791,28): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2792,9): error TS1109: Expression expected. …/…/…/…/node_modules/@types/react/index.d.ts(2793,9): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2794,9): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2795,5): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2795,12): error TS1005: β€˜)’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2797,39): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2797,66): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2797,89): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2798,5): error TS1128: Declaration or statement expected. …/…/…/…/node_modules/@types/react/index.d.ts(2799,5): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2799,9): error TS1005: β€˜,’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2799,36): error TS1005: β€˜,’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2799,37): error TS1005: β€˜:’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2801,9): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2801,13): error TS1005: β€˜,’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2801,43): error TS1005: β€˜,’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2801,44): error TS1005: β€˜:’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2803,13): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2803,16): error TS1005: β€˜)’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2817,49): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2817,89): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2817,92): error TS1109: Expression expected. …/…/…/…/node_modules/@types/react/index.d.ts(2817,126): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2818,13): error TS1109: Expression expected. …/…/…/…/node_modules/@types/react/index.d.ts(2818,17): error TS1005: β€˜:’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2818,57): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2818,60): error TS1109: Expression expected. …/…/…/…/node_modules/@types/react/index.d.ts(2818,94): error TS1005: β€˜;’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2819,17): error TS1109: Expression expected. …/…/…/…/node_modules/@types/react/index.d.ts(2820,17): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2821,13): error TS1005: β€˜(’ expected. …/…/…/…/node_modules/@types/react/index.d.ts(2821,43): error TS1005: β€˜(’ expected. npm ERR! code ELIFECYCLE npm ERR! errno 2 npm ERR! Multiplayer-game@1.0.0 prestart: npm i && tsc -p ./ npm ERR! Exit status 2 npm ERR! npm ERR! Failed at the Multiplayer-game@1.0.0 prestart 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! C:\Users\jonat\AppData\Roaming\npm-cache_logs\2019-07-16T00_34_16_693Z-debug.log` please help me fix this issue. I had fun and enjoyed your book but I’m getting frustrated with it not working for me. I’m sure it’s something I did myself but the above error was from your chapter/7 branch.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:17 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
RedHoodJT1988commented, Oct 27, 2019

I believe they are different errors. I will try rerunning it in dev mode to see.

On Sun, Oct 27, 2019, 1:26 AM Oscar Lodriguez notifications@github.com wrote:

Hey @RedHoodJT1988 https://github.com/RedHoodJT1988, Python is awesome. Let’s definitely schedule a Zoom call and see if we can solve it together. I have just tested it on a Linux and a Mac and it appears to work as intended. I have access to a windows PC tonight, so I could probably test it against Windows as well.

Do you have the same errors when running against develop? And are they the same errors as before? (React prop types related)

for zoom: o.lodriguez@gmail.com

β€” You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/code0wl/Multiplayer-Phaser-game/issues/13?email_source=notifications&email_token=AHOA4C6OFFVB5HGLRWOTBRLQQURBFA5CNFSM4ID344KKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECKXKYA#issuecomment-546665824, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHOA4C3NIR5PJQZNYQWNIV3QQURBFANCNFSM4ID344KA .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting cloning errors - GitHub Docs
Error: Repository not found. If you see this error when cloning a repository, it means that the repository does not exist or you...
Read more >
git - error in pushing the code in my private repository
I cloned data from my professor Git url and trying to set my private account has upstream master and push the code in...
Read more >
Error: failed to push some refs to – How to Fix in Git
This error mainly occurs when you attempt to push your local changes to GitHub while the local repository (repo) has not yet been...
Read more >
How to Fix 'failed to push some refs to' Git Errors - Komodor
It occurs when a developer attempts to push committed code to an external git repository. The ability to push code stopped working suddenly,Β ......
Read more >
Git error - Fatal: Not a git repository and how to fix it | Datree.io
This error means you attempted to run a Git command, but weren't inside a Git repository. Make sure you've: Navigated to the right...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found