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.

`GitHubURL`: 'pathname' called on an object that does not implement interface URL

See original GitHub issue

This line causes the error in Firefox 77:

https://github.com/sindresorhus/refined-github/blob/8b135715bbd73609a67ffd3ab104b1dbbe39edc1/source/github-helpers/github-url.ts#L19

It appears to happen only for some links, not all. It doesn’t matter whether I have the “Repository refresh” beta enabled or disabled. Places where I have spotted it:

edit-files-faster

https://github.com/sindresorhus/refined-github/blob/8b135715bbd73609a67ffd3ab104b1dbbe39edc1/source/features/edit-files-faster.tsx#L17

Sometimes only the last link or even more links are affected, but they seem to always keep working up to some point.

Screenshot_2020-06-06_18-20-58

edit-readme

https://github.com/sindresorhus/refined-github/blob/8b135715bbd73609a67ffd3ab104b1dbbe39edc1/source/features/edit-readme.tsx#L20

Sometimes it works just fine, sometimes it errors (in the same repo).

latest-tag-button

https://github.com/sindresorhus/refined-github/blob/8b135715bbd73609a67ffd3ab104b1dbbe39edc1/source/features/latest-tag-button.tsx#L97

Sometimes it works just fine, sometimes it errors (in the same repo).

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:12 (12 by maintainers)

github_iconTop GitHub Comments

2reactions
yakov116commented, Jun 7, 2020

Wacky!! If there is a file that has the words config.json it errors

https://github.com/yakov116/TestR

0reactions
fregantecommented, Oct 7, 2021

Yeah if Firefox still can’t extend URL then it cannot be reverted

Read more comments on GitHub >

github_iconTop Results From Across the Web

'click' called on an object that does not implement interface ...
I think your ajax function code should be like this... function edit_data(id, text, column_name) { var post_data={}; post_data['id']=id; ...
Read more >
"'requestAnimationFrame' called on an object that does not ...
TypeError : "'requestAnimationFrame' called on an object that does not implement interface Window." If the current behavior is a bug, please ...
Read more >
package.json - npm Docs
The name ends up being part of a URL, an argument on the command line, and a folder name. Therefore, the name can't...
Read more >
x called on an object that does not implement interface y
Run the following in the console: DOMTokenList.prototype.contains.call(['hello'], 'hello'). Actual results: Got the correct error "TypeError: 'contains' ...
Read more >
app.json / app.config.js - Expo Documentation
No other validation is performed, so use this at your own risk of rejection from the App Store. entitlements. Type: object • Path: ......
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