Chrome Extension Error Page is Blank
⚠️ This is for issues with the https://developer.chrome.com site, not Chromium itself. If you want to file a bug with Chromium (the open-source project behind Google Chrome and other browsers), please use https://crbug.com.
Describe the bug While developing several chrome extensions, there bound to be some syntax errors, invalid URL error etc.
In chrome://extensions, such errors are usually flagged out under the 'Errors' button with the erroneous code highlighted. However, recently I realized clicking on the 'Errors' button lead to a blank page without any message at all. Refreshing, updating, or reloading the chrome extension doesn't seem to fix this issue all the time.
To Reproduce Steps to reproduce the behavior:
- Enable developer mode on chrome://extensions
- Load unpacked extension folder (ensure your javascript files have some errors)
- Errors will occur when you interact with the chrome extension (i.e. when you click on your chrome extension)
- Click on the 'Errors' button in chrome://extensions
Expected behavior The error message should be shown clearly along with the highlighted line of code that caused the error
Screenshots
Error detected by Chrome
No error message showing up - only a blank screen

Desktop (please complete the following information):
- OS: Windows 10
- Browser: Chrome
- Version: 100.0.4896.127 (Official Build) (64-bit)
Additional context This error occurred to numerous chrome extensions, so it is unlikely a code issue.
Please use https://crbug.com/new to file issues related to the Chrome browser's behavior or developer interfaces. This repo is just for content issues related to the https://developer.chrome.com/ website.
This is the only page I found on Google, that described this bug. Why not just post a solution?
I don't know about everyone else, but in my case it was because one of the errors didn't have a source url set. I found this by looking at the console while on the error page. I then set a breakpoint on the code at the point of error, and supplied a dummy url for the source. This allowed the page to load so that I could clear that bad error message.
Still occuring.
Been happening since I last updated to a Version 103.0.5060.134 (Official Build) (64-bit) few days ago
found a temporary solution, if you have any background.js file type anything that will make an obvious error like "auksgaksbd/" and update the extension, and press error button and it should show all the errors now :)
@Chillszz thank you!
Looks like after that you can just keep the error page opened and you don't need "auksgaksbd/" anymore.
I have been suggesting that it is an Invalid URL in the source code but the devs won't try a simple edit to see if that will fix it. Will anyone who would like to see this issue resolved, please, help me out? If so, access the Chromium bugs page at:
https://bugs.chromium.org/p/chromium/issues/detail?id=1257170
Scroll to the bottom of the page. Read my post, [Comment 35]
Click on Star this issue instead of commenting "+1 Me too!" to add a vote and get notifications.
Thanks
woxxom's workaround from https://bugs.chromium.org/p/chromium/issues/detail?id=1257170#c13 works by monkey-patching the URL class to not throw an exception when href is empty:
- if you already clicked Errors, close this tab because its script has already crashed
- open
chrome://extensions - right-click >
Inspect>Console - Paste this into the console and press the Enter key:
URL=class extends URL { constructor(href, ...rest) { super(href || 'dummy://', ...rest) } } - click Errors in your extension's card
woxxom's workaround from https://bugs.chromium.org/p/chromium/issues/detail?id=1257170#c13 works by monkey-patching the URL class to not throw an exception when
hrefis empty:
- if you already clicked Errors, close this tab because its script has already crashed
- open
chrome://extensions- right-click >
Inspect>Console- Paste this into the console and press the Enter key:
URL=class extends URL { constructor(href, ...rest) { super(href || 'dummy://', ...rest) } }- click Errors in your extension's card
do you know how this works?