Add an error message for calling "GeoJSONSource#setData" for a style that doesn't exist
Open
Nobody has claimed this yet.
feature :green_apple:
good first issue
- Dominant language
- TypeScript
- Stars
- 12.4k
- Forks
- 2.4k
- PR merge metrics
- No merged PRs in 30d
Description
Can this error message be improved?
(link removed)
Step 1) press the [+] button
Step 2) Notice the specific error message
dispatcher.js:32 Uncaught TypeError: Cannot read property 'send' of undefined
The dispatcher.js:32 that doesn't give any hints whatsoever for me and probably other api users.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with GeoJSONSource#setData and trace the failure reported at dispatcher.js:32 when the style does not exist. Reproduce the two-step case, then make the resulting error identify the invalid operation or missing style instead of reporting that send is undefined.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100