I'm using Chrome on OS X (Maverick) and got some issues opening Firebug Lite for testing an AngularJS application. There was a message:
cannot read property 'push' of undefined firebug-lite.js 30905
How can this problem be solved?
I've found the answer in a Firebug discussion group thread.
Firebug Lite stores some info about its activation in the browser's local storage. To clear the local storage and by that reset the activation information execute this via the devtools' command line:
window.localStorage.clear()
Related
I'm trying to create a Chrome extension and want to in different ways interact with the devtools. To create a foundation I decided to follow this guide, however it doesn't seem to be working at all. The errors arrive from this piece of code:
chrome.devtools.panels.create(
"My Panel",
"/icons/star.png",
"/devtools/panel/panel.html"
).then((newPanel) => {
newPanel.onShown.addListener(handleShown);
newPanel.onHidden.addListener(handleHidden);
});
The errors:
Uncaught TypeError: Cannot read properties of undefined (reading 'then')
Ignoring unauthorized client request from null
A panel is successfully created however when trying to view it just says "It may have been moved, edited or deleted". If instead of doing then add a callback function. The TypeError is removed, but the Ignoring unauthorized client request persists.
This is my first time working with Chrome extensions or anything with devtools API, however I have not been able to find any sufficient help online.
each time that i run live sever i got this error in my console:
TypeError: Cannot destructure property 'eligibleURLPatterns' of 'Yt' as it is null.
image of error: https://i.stack.imgur.com/ql91y.png
I started seeing this error too and it seems is from the Loom chrome extension. You can verify by going into the network tab and searching for companion-bubble.js.
This would show you the extension id, which you can inspect using a similar link: chrome://extensions/?id=extensionid
Removing the Loom extension and adding it again seems to solve the issue for me.
Loom Chrome Extension Link
Error can also be, So it is nothing but error from loom extension as #andres said
Uncaught (in promise) TypeError: Cannot destructure property 'eligibleURLPatterns' of 'Jt' as it is null.
Simply disable/remove Loom chrome extension and the error will disapppear 😁
Have connection sampleQos OpenTok issue.
This error happens only in Chrome mobile view.
VM1645 opentok.min.js:23 Uncaught TypeError:
Cannot read property 'sampleQos' of undefined
Btw, the same appears in this demo
Any help will be appreciated.
I am trying to run following code by saving it as Chrome bookmarklet.
javascript:(function(){var myslidetotal=document.evaluate('//*[#id="total-slides"]', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.innerHTML;
var myslideurl=document.evaluate('//*[#id="container"]/img', document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.src;
myslideurl=myslideurl.substring(0,myslideurl.indexOf("/images/")+8);
for(var ii=0;ii<myslidetotal;ii++){var myslideuniqurl=myslideurl+ii+'.jpeg?dpr=1&fit=clip&w=768';window.open(myslideuniqurl); }
})();
But it gives me error.
VM1747:1 Uncaught TypeError: Cannot read property 'innerHTML' of null
But when I try running same code in console. It works perfectly.
Why is this anomaly while running code and how to rectify this.
Chrome's now getting better by not executing some JavaScript that manipulate DOM on the URLs using javascript: protocol. So, yea, this implementation will fail. :) It's a security feature.
More Information: Same Origin Policy.
But it works in Console...
Using the Chrome Developer Console (or any of the current F12 Developer Tools), one can even get your Cookies, Session Information, and Credentials. Console has full power. :) In simple terms, your JavaScript console is like your Admin Account for JavaScript in Web Sites.
Any Work Arounds?
No. But one can create an extension or UserScript and run it using TamperMonkey for Google Chrome. Firefox has an extension called GreaseMonkey.
I am trying to display recent tabs in a extension that I am expanding on.
When I try to run this code;
chrome.sessions.getDevices(function(data) { console.log(data);});
I get this error;
TypeError: Cannot read property 'getDevices' of undefined
I have given my manifest.json "sessions" permissions and cannot figure out why it gives me this. Do I have to clear my chrome cache to reload permissions?