Recursive "Extension context invalidated" error in console - javascript

I cannot find cause in extension (Even after removing the affected files it persists...)
Here's the error that I am seeing (Ir just loops with this every second)
let pingTimer = setInterval(ping, 100);
let pingUtilities = new PingUtilities();
function ping() {
let port = chrome.runtime.connect();
if (port) {
pingUtilities.checkTitleInLinkedIn();
pingUtilities.appendBookMarkInPing();
pingUtilities.checkCounter();
port.disconnect();
return;
}
clearInterval(pingTimer);
pingUtilities.onDisabled();
}
Uncaught Error: Extension context
invalidated. Uncaught Error: Extension context invalidated. Uncaught
Error: Extension context invalidated. Uncaught Error: Extension
context invalidated. Uncaught Error: Extension context invalidated.
Uncaught Error: Extension context invalidated. Uncaught Error:
Extension context invalidated.
Do you know what could be causing this?

Related

Unexpected property: 'cookieStoreId' in tabs.create()

chrome.tabs.create({cookieStoreId:"4"})
When i am trying to use above code in chrome extension it is showing following error:
Uncaught TypeError: Error in invocation of tabs.create(object createProperties, optional function callback): Error at parameter 'createProperties': Unexpected property: 'cookieStoreId'.
at :1:13
I am following documentation of :
https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/API/tabs/create
https://docs.w3cub.com/web_extensions/api/tabs/create
I have also included permissions of cookies in manifest.

Can't find variable: __TEST__

I'm new at Nativescript. Whenever I try to compile a project on my iPhone; It gives me this exception.
My phone on 14.0 and Nativescript on 7.0.11
Log is there:
2020-12-01 00:12:26.786 nsplaydev[49332:2731673] JavaScript error:
file:///app/tns_modules/react-nativescript/dist/nativescript-vue-next/runtime/registry.js:61:14: JS ERROR
ReferenceError: Can't find variable: _TEST_
2020-12-01 00:12:26.788 nsplaydev[49332:2731673] PlayLiveSync: Uncaught Exception
NativeScript encountered a fatal error: ReferenceError: Can't find variable: _TEST_
at
anonymous(file:///app/tns_modules/react-nativescript/dist/nativescript-vue-next/runtime/registry.js:61:14)

Angular 8 - Getting Runtime compiler not loaded error

I need to dynamically create lazy loaded routes. When I use import syntax, e.g. loadChildren: () => import(`./pages/${module.moduleName}/${module.moduleName}.module`).then(m => m[childModuleName]), it works on JIT but when running on AOT, it throws this error:
ERROR Error: Uncaught (in promise): Error: Runtime compiler is not loaded as per https://github.com/angular/angular-cli/issues/10582 the solution would be to use the old string syntax:
```` loadChildren: ./pages/${module.moduleName/${module.moduleName}.module#${childModuleName},
I get this error:
``` ERROR Error: Uncaught (in promise): Error: Cannot find module './pages/client-migration/client-migration.module.ngfactory' ```
import the module name into your module.ts.

Script errors after moving wordpress to a new domain

I've moved my wordpress from a domain to another. On the first domain everything worked fine. On the second i get a bunch of JS errors logged to the console. The url of the website is https://dexport.co.uk
The errors I have been getting look like this:
Uncaught SyntaxError: Invalid or unexpected token
jquery.js:3 Uncaught SyntaxError: Invalid or unexpected token
jquery-migrate.js?ver=1.4.1:752 Uncaught ReferenceError: jQuery is not defined
at jquery-migrate.js?ver=1.4.1:752
(index):1 Uncaught SyntaxError: Unexpected identifier
at layerslider.kreaturamedia.jquery.js?ver=6.7.6:13
(index):1 Uncaught SyntaxError: Invalid or unexpected token
at layerslider.transitions.js?ver=6.7.6:13
jquery.themepunch.tools.min.js?ver=5.4.8:23 Uncaught ReferenceError: jQuery is not defined
at jquery.themepunch.tools.min.js?ver=5.4.8:23
at jquery.themepunch.tools.min.js?ver=5.4.8:23
jquery.themepunch.revolution.min.js?ver=5.4.8:7 Uncaught ReferenceError: jQuery is not defined
at jquery.themepunch.revolution.min.js?ver=5.4.8:7
gtm4wp-form-move-tracker.js?ver=1.8.1:1 Uncaught ReferenceError: jQuery is not defined
at gtm4wp-form-move-tracker.js?ver=1.8.1:1
add-to-cart.js?ver=3.4.5:2 Uncaught ReferenceError: jQuery is not defined
at add-to-cart.js?ver=3.4.5:2
woocommerce-add-to-cart.js?ver=5.5.4:1 Uncaught TypeError: window.jQuery is not a function
at woocommerce-add-to-cart.js?ver=5.5.4:1
(index):1315 Uncaught ReferenceError: jQuery is not defined
at (index):1315
(index):1415 Uncaught ReferenceError: jQuery is not defined
at (index):1415
(index):1449 Uncaught ReferenceError: jQuery is not defined
at (index):1449
core.min.js?ver=1.11.4:11 Uncaught ReferenceError: jQuery is not defined
I added a few lines to my wp-config:
define('FORCE_SSL_LOGIN', true);
define('FORCE_SSL_ADMIN', true);
define( 'CONCATENATE_SCRIPTS', false );
define( 'SCRIPT_DEBUG', true );
But no succes
The error messages say: Uncaught ReferenceError: jQuery is not defined
I suppose you are storing those libraries in your server and you are not using CDN.
Verify that the path that leads to libraries such as jQuery, is properly defined in your installation and that file permissions are properly set.
1) Open your Active theme’s header.php file
2) Paste below script
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.4/jquery.min.js"></script>
just after the head tag.
3) Save your file.

How to record voice using ionic2 (media plugin)?

After installing the Media plugin, i followed the documentation steps to integrate the recording code.
this is my code:
`this.platform.ready()
.then(() => {
const file: MediaObject = this.media.create('my_awesome_file.mp3');
file.startRecord();
window.setTimeout(() => file.stopRecord(), 10000);
});
and when i run it on real device i got this error message:
ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'create' of undefined
TypeError: Cannot read property 'create' of undefined

Categories