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.

TypeError "a is undefined" in production version

See original GitHub issue

TypeError “a is undefined” in production version

Scene content

{"excalidraw":[{"id":"RSrswM0Nsru4O3DIycwr4","type":"rectangle","x":1197.3636363636374,"y":350.5454545454543,"width":23.090909090909012,"height":247.72727272727272,"angle":0,"strokeColor":"#000000","backgroundColor":"#bf9ea8","fillStyle":"solid","strokeWidth":1,"strokeStyle":"solid","roughness":0,"opacity":100,"seed":1014866942,"version":101,"versionNonce":436515497,"isDeleted":false,"groupIds":[]},{"id":"zC3nJLfOyHgw1l_bhG0DD","type":"rectangle","x":57.1935483870966,"y":-195.90322580645147,"width":2496.8709677419356,"height":1407.3548387096776,"angle":0,"strokeColor":"#000000","backgroundColor":"transparent","fillStyle":"hachure","strokeWidth":1,"strokeStyle":"solid","roughness":1,"opacity":100,"seed":476861886,"version":247,"versionNonce":738837694,"isDeleted":false,"groupIds":[]},{"id":"5q5J-gB-nKn73XqjhlxV-","type":"diamond","x":1266.907235621526,"y":411.0037105751381,"width":78.18181818181829,"height":110.9090909090909,"angle":0,"strokeColor":"#000000","backgroundColor":"#000000","fillStyle":"cross-hatch","strokeWidth":1,"strokeStyle":"solid","roughness":0,"opacity":100,"seed":573471998,"version":965,"versionNonce":281806818,"isDeleted":false,"groupIds":[]},{"id":"AV2cGDgArQMwZrR-f-cIs","type":"rectangle","x":1102.1956260634397,"y":515.6963813915872,"width":70.56256713211614,"height":20.3477443609022,"angle":0,"strokeColor":"#000000","backgroundColor":"#bf9ea8","fillStyle":"solid","strokeWidth":1,"strokeStyle":"solid","roughness":0,"opacity":100,"seed":11039906,"version":617,"versionNonce":354599559,"isDeleted":false,"groupIds":[]},{"id":"FAj2Aa6cBVATt_MSfLFy1","type":"rectangle","x":1057,"y":457.0624320261031,"width":101.74962330254682,"height":13.93756797389688,"angle":0,"strokeColor":"#000000","backgroundColor":"#40c057","fillStyle":"solid","strokeWidth":1,"strokeStyle":"solid","roughness":0,"opacity":100,"seed":713358178,"version":606,"versionNonce":692495542,"isDeleted":false,"groupIds":[]},{"id":"-EtgadXsLWD-hsA0AWfrY","type":"rectangle","x":883,"y":388,"width":73,"height":73,"angle":0,"strokeColor":"#000000","backgroundColor":"#228be6","fillStyle":"solid","strokeWidth":4,"roughness":0,"opacity":100,"seed":1427189302,"version":266,"versionNonce":2015479146,"isDeleted":false},{"id":"1h53bY-FFiMz7opoq-BoM","type":"rectangle","x":882.5,"y":245.5,"width":73,"height":73,"angle":0,"strokeColor":"#000000","backgroundColor":"#fa5252","fillStyle":"solid","strokeWidth":4,"roughness":0,"opacity":100,"seed":1865249386,"version":296,"versionNonce":1387058422,"isDeleted":false},{"id":"DpaElZBjD75KMbfyJbSxE","type":"ellipse","x":1048,"y":297,"width":21,"height":59,"angle":0,"strokeColor":"#000000","backgroundColor":"#000000","fillStyle":"solid","strokeWidth":4,"roughness":0,"opacity":100,"seed":1578247606,"version":57,"versionNonce":1546668470,"isDeleted":false},{"id":"MChygxa7Bw8QhdYy41HF1","type":"rectangle","x":1010.1139698441657,"y":517.7291997947076,"width":70.56256713211614,"height":20.3477443609022,"angle":0,"strokeColor":"#000000","backgroundColor":"#ced4da","fillStyle":"solid","strokeWidth":1,"strokeStyle":"solid","roughness":0,"opacity":100,"seed":2106603495,"version":640,"versionNonce":215291881,"isDeleted":false,"groupIds":[]}],"excalidraw-state":{"elementType":"selection","elementLocked":false,"exportBackground":true,"shouldAddWatermark":false,"currentItemStrokeColor":"#000000","currentItemBackgroundColor":"#ced4da","currentItemFillStyle":"hachure","currentItemStrokeWidth":1,"currentItemStrokeStyle":"solid","currentItemRoughness":1,"currentItemOpacity":100,"currentItemFontSize":20,"currentItemFontFamily":1,"currentItemTextAlign":"left","viewBackgroundColor":"#ffffff","scrollX":-177,"scrollY":-1,"cursorX":0,"cursorY":0,"cursorButton":"up","scrolledOutside":false,"name":"Untitled-2020-06-04-1558","username":"Johannes","zoom":1.42,"openMenu":null,"lastPointerDownWith":"mouse","selectedElementIds":{"MChygxa7Bw8QhdYy41HF1":true,"A8Ec64ZeUodakw0TaOpy_":true,"4I2mp_tnHdI7HTxWTlTD-":true},"previousSelectedElementIds":{"MChygxa7Bw8QhdYy41HF1":true,"A8Ec64ZeUodakw0TaOpy_":true},"shouldCacheIgnoreZoom":false,"zenModeEnabled":false,"editingGroupId":null,"selectedGroupIds":{}},"excalidraw-collab":{"username":"Johannes"},"i18nextLng":"en"}

Sentry Error ID

1ee2e5a6bb60493b9186a2adda80cf15

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
dwellecommented, Jun 16, 2020

@HaSa1002 I forgot to get back to you. The solution you describe (hard-reload) suggests our hypothesis was correct and one of the clients was running on old version.

EDIT: I may have read it wrong. I thought your colleague did hard-reload, which solved it. But still, if it’s no longer reproducible, it suggests that your colleague’s version got ultimately updated.

0reactions
HaSa1002commented, Jun 16, 2020

I guess it got somehow reloaded on his side. I don’t remember if I told him to hard reload.

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Uncaught TypeError: undefined is not a function" error only ...
The bug only appears in production -- not locally. Every time a web page loads, it generates the following JavaScript error: "Uncaught TypeError...
Read more >
Cannot Read Property of Undefined in JavaScript - Rollbar
What Causes TypeError: Cannot Read Property of Undefined. Undefined means that a variable has been declared but has not been assigned a value....
Read more >
Uncaught Typeerror in data.js - Questions - Square Developer
I am lowering the “urgency” on this problem. It turns out the TypeError was not related to the unresponsive payment button. I managed...
Read more >
TypeError - JavaScript - MDN Web Docs
The TypeError object represents an error when an operation could not be performed, typically (but not exclusively) when a value is not of ......
Read more >
TypeError: Cannot read property 'master' of undefined at ...
TypeError : Cannot read property 'master' of undefined at processAPIResponse. Closed, ResolvedPublicPRODUCTION ERROR. Actions ... MediaWiki version: n/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