mapbox / mapbox/mapbox-gl-js

TypeError: Cannot read properties of undefined (reading '0')

Open
#13,590 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

auto-triaged needs information :pray:
Dominant language
TypeScript
Stars
12.4k
Forks
2.4k
PR merge metrics
No merged PRs in 30d

Description

Sorry I can't give more helpful details, just following instructions from the stack trace!

TypeError: Cannot read properties of undefined (reading '0')

{snip} nction(e,i,r){var a=i[0],n=i[1],o=i[2],s=i[3];return e[0]=r[0]*a+r[4]*n+r[8]*o+r[12]*s,e[1]=r[1]*a+r[5]*n+r[9]*o+r[13]*s,e[2]=r[2]*a+r[6]*n+ {snip}
This is most likely a bug, please report this via https://github.com/mapbox/mapbox-gl-js/issues/new?assignees=&labels=&template=Bug_report.md
and paste the contents of this message in the report.
Thank you!
Filter Expression:
${JSON.stringify(n,null,2)}
{snip} ?(e[r++]=239,e[r++]=191,e[r++]=189):n=a;continue}if(a<56320){e[r++]=239,e[r++]=191,e[r++]=189,n=a;continue}a=n-55296<<10|a-56320|65536,n=nul {snip}
{snip} ._centerAltitude,n=[i.x,i.y,0,1],o=[i.x,i.y,1,1];e.ab.vec4.transformMat4(n,n,this.pixelMatrixInverse),e.ab.vec4.transformMat4(o,o,this.pixel {snip}
#ifndef HAS_UNIFORM_u_${n}
in ${r} ${a} ${n};
#else
uniform ${r} ${a} u_${n};
#endif

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report contains only a minified TypeError stack trace, including filter-expression and WebGL-related snippets; no source file, test, or reproduction is identified. First obtain a reproducible example and the relevant unminified stack, then define the affected behavior and a regression test before changing code.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend
Issue type
Bug
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
15/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.