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.

Cannot set property '4' of undefined when game finished and component unmount

See original GitHub issue

Hi,

there is an issue when game finished and component unmount. It ends up with error “Cannot set property ‘4’ of undefined” on row

board[boardY][boardX] = className;

in function

createPieceSetter

Could you please fix this problem to let componnet unmount properly?

Thank you!

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
brandlycommented, Jun 22, 2020

You’re probably right. I’ll reopen this and see if I can get to it.

This is like the very first thing I made with React years ago. The core of it hasn’t changed since then, and the application state is really spread out. The real solution here requires a larger refactor to fix these structural issues.

1reaction
waleedarshad-vfcommented, Jun 19, 2020

let me try sorry

On Sat, Jun 20, 2020, 12:55 AM waleedarshad notifications@github.com wrote:

I am using same version but still facing the same problem.

On Fri, Jun 19, 2020, 10:13 PM Matt Brandly notifications@github.com wrote:

try v0.1.2! the issue should be gone. let me know if not!

— You are receiving this because you commented. Reply to this email directly, view it on GitHub <https://github.com/brandly/react-tetris/issues/7#issuecomment-646764196 , or unsubscribe < https://github.com/notifications/unsubscribe-auth/ABIVGIJRGSKGP7DZUQ3TUJDRXOMDNANCNFSM4LEZT7JA

.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/brandly/react-tetris/issues/7#issuecomment-646838012, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEKY26UV3GIOYTLYFVJTSMTRXO7CVANCNFSM4LEZT7JA .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot set property 'size' of undefined 4 - javascript
TypeError : Cannot set property 'size' of undefined at Object. (C:\Users\User\Documents\latihannode.js\javascript4\test\script 4.js:4:10) at ...
Read more >
How to solve the 'cannot set property of undefined' issue on ...
Now, in this current state, it is “undefined”. The variable exists, but you have not defined a value for it. Therefore it is...
Read more >
$A.getCallback error says property undefined
Your code is trying to look for that component in line component.find("recordLoader").reloadRecord(true); and is not able to find it? – ...
Read more >
RMMV - Cannot set property '1' of undefined
Testing my game, suddenly, this error has appeared when entering a map, which had already happened several times and I never got this...
Read more >
Uncaught TypeError: Cannot read property 'call' of undefined
I'm having an issue with webpack where if I stop watching and restart, it will build just fine, but if I edit a...
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