Skip to content

Console Errors #2907

Closed
Closed

Description

@yakov116
  • When clicking on almost any dropdown
content.js:4477 Uncaught TypeError: Cannot read property 'getBoundingClientRect' of null
    at content.js:4477

Go to any PR start commenting and refresh the page

content.js:808 Uncaught (in promise) TypeError: elements is not iterable
    at Function.watchAndFit [as watch] (content.js:808)
    at enable (content.js:7545)
    at fitPrCommitMessageBox (content.js:7553)
    at HTMLDocument.<anonymous> (content.js:5818)
watchAndFit @ content.js:808
enable @ content.js:7545
fitPrCommitMessageBox @ content.js:7553
(anonymous) @ content.js:5818
async function (async)
(anonymous) @ content.js:5817
so @ session-resume.esm.js:144
(anonymous) @ session-resume.ts:33
content.js:8660 Uncaught (in promise) TypeError: Cannot read property 'dispatchEvent' of null
    at triggerValidation (content.js:8660)
    at HTMLDocument.<anonymous> (content.js:5818)

The first time you go to any repo

content.js:12768 ❌ Refined GitHub: feature `repo-age`

 TypeError: Cannot read property 'src' of undefined
    at content.js:10313
    at async getSet (content.js:2412) 
  • Press T on any repo issue page.
content.js:10791 Uncaught (in promise) TypeError: Cannot read property 'rghFileFinderTerm' of null
    at setValueInField (content.js:10791)
    at preserve_file_finder_term_init (content.js:10800)
    at features_run (content.js:2798)
    at content.js:2853
    at content.js:2742
  • When editing and creating a new milestone
❌ Refined GitHub → filter-comments-by-you → TypeError: Cannot read property 'cloneNode' of null
    at filter_comments_by_you_init (refined-github.js:8380)
    at features_run (refined-github.js:5917)
    at refined-github.js:5972
    at refined-github.js:5861 
Search issue: https://github.com/sindresorhus/refined-github/issues?q=is%3Aissue+Cannot%20read%20property%20'cloneNode'%20of%20null

refined-github.js:4113 ❌ Refined GitHub → hide-issue-list-autocomplete → TypeError: Cannot read property 'setAttribute' of null
    at hide_issue_list_autocomplete_init (refined-github.js:9478)
    at features_run (refined-github.js:5917)
    at refined-github.js:5972
    at refined-github.js:5861 

The issue is here
https://github.com/sindresorhus/refined-github/blob/d757f50ba6ae5b01638f572fcd59665706e0cdf5/source/libs/page-detect.ts#L260

Activity

  1. fregante commented on Mar 20, 2020

    @fregante
  2. yakov116 commented on Mar 20, 2020

    @yakov116
    Author
  3. added a commit that references this issue on Mar 22, 2020
  4. added
    small
    on Mar 22, 2020
  5. yakov116 commented on Mar 25, 2020

    @yakov116
    MemberAuthor
    content.js:12768 ❌ Refined GitHub: feature `repo-age`
    
     TypeError: Cannot read property 'src' of undefined
        at content.js:10313
        at async getSet (content.js:2412) 

    The issue is that element ready is firing too early and responding undefined

  6. fregante commented on Mar 25, 2020

    @fregante
    Member
  7. yakov116 commented on Apr 2, 2020

    @yakov116
    Author
  8. fregante commented on Apr 2, 2020

    @fregante
  9. yakov116 commented on Apr 2, 2020

    @yakov116
    Author
  10. fregante commented on Apr 2, 2020

    @fregante
  11. yakov116 commented on Apr 2, 2020

    @yakov116
    Author
  12. fregante commented on Apr 2, 2020

    @fregante
  13. yakov116 commented on Apr 28, 2020

    @yakov116
    MemberAuthor

    I know this issue is closed but I think until sindresorhus/element-ready#29 is resolved

    content.js:12768 ❌ Refined GitHub: feature `repo-age`
    
     TypeError: Cannot read property 'src' of undefined
        at content.js:10313
        at async getSet (content.js:2412) 

    The issue is that element ready is firing too early and responding undefined

    https://github.com/sindresorhus/refined-github/blob/453d3f8566695ce1ea7edd729fb319084bdb7fc2/source/features/repo-age.tsx#L19

    Could be changed to

    const commitInfo = await elementReady<HTMLAnchorElement | HTMLScriptElement>('a.commit-tease-sha, include-fragment.commit-tease', {
    		stopOnDomReady: false,
    		timeout: 1000
    	});

    This would also have the repo age show on first run

    JMHO

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    acceptedbugsmall

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions