twitterembed sometimes has undefined `this`
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- javascript
- Domain
- frontend
Research direction
Start in src/js/media/types/TwitterEmbed.js at line 88 and inspect how Twitter embed codes are processed. Use the linked report or configuration details to find a reproducible case, then verify that embedded tweets render consistently without the undefined this console error.
Written by the indexing model from the issue text.
Description
A Zendesk report shared a configuration that uses Twitter embed codes instead of URLs. These tweets appear in the timeline inconsistently. Some of them throw a console log about an undefined this here: https://github.com/NUKnightLab/TimelineJS3/blob/e6c81d21db04589a01bbac1c05d6fd3efa461c30/src/js/media/types/TwitterEmbed.js#L88
The workaround seems to be using direct tweet URLs and letting Timeline handle everything, but we should see if we can correct this issue. Here's a link to a copy of the problem timeline config, which admittedly only I can read, because we didn't get permission to share the content more widely. If anyone can come up with a public replication case before we get around to fixing this, it might be nice to add here.
- Dominant language
- JavaScript
- Stars
- 3.2k
- Forks
- 645
- PR merge metrics
- No merged PRs in 30d
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.
More from NUKnightLab/TimelineJS3
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
NUKnightLab/TimelineJS3#797 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 68/100
NUKnightLab/TimelineJS3#617 ·
-
Bug CSS
Difficulty 1/5 Under an hour Newbie friendliness 62/100
NUKnightLab/TimelineJS3#602 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
NUKnightLab/TimelineJS3#904 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
NUKnightLab/TimelineJS3#902 · 2 comments ·
All issues in NUKnightLab/TimelineJS3
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
HarperFast/skills#96 ·
-
[Block] Latest Posts [Type] Bug
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Automattic/studio#4908 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
sugarlabs/musicblocks#8847 ·