My karma tests were working fine and now I'm getting this weird error:
Uncaught TypeError: Cannot read property 'replace' of undefined
Any ideas?
Restarting all karma sessions fixed this.
Related
I'm working on my own demo repo to test ThreeJS in NativeScript, and stuck that trivial error I can not figure it out where is the issue - repo: https://github.com/sylwesterdigital/nativescript-threejs-demo
*** Terminating app due to uncaught exception 'NativeScript encountered a fatal error: ReferenceError: Can't find variable: window
at
init(file: app/home/home-page.ts:206:19)
at myWorld(file: app/home/home-page.ts:190:8)
at canvasLoaded(file: app/home/home-page.ts:141:10)
I am getting Uncaught TypeError: Cannot set property 'scriptsFailed' of undefined error in script manager.
Pls suggest solution for this.
Thanks in Advance.
Error Message :
I'm getting a blank page and this error when testing my aurelia app. It worked until I made a bunch of changes and I don't know which one broke it. vendor-bundle.js:13551 is inside core code. I've got debug messages showing as you can see.Is there a way to find what causes an error like this other than undoing each change one at a time?
... snipped ...
DEBUG [aurelia] Configured plugin aurelia-templating-router.
DEBUG [aurelia] Loading plugin resources/index.
Uncaught SyntaxError: Unexpected token export
vendor-bundle.js:13551 Uncaught TypeError: Cannot read property '__useDefault' of undefined
at ensureOriginOnExports (vendor-bundle.js:13551)
at vendor-bundle.js:13659
at Object.execCb (vendor-bundle.js:5432)
at Module.check (vendor-bundle.js:4620)
at Module.<anonymous> (vendor-bundle.js:4875)
at vendor-bundle.js:3873
at vendor-bundle.js:4925
at each (vendor-bundle.js:3798)
at Module.emit (vendor-bundle.js:4924)
at Module.check (vendor-bundle.js:4675)
at Module.enable (vendor-bundle.js:4912)
at Module.init (vendor-bundle.js:4525)
at callGetModule (vendor-bundle.js:4939)
at Object.completeLoad (vendor-bundle.js:5347)
at HTMLScriptElement.onScriptLoad (vendor-bundle.js:5453)
When I create new module using Roksproket, I get:
Fatal error: Call to undefined method ModulesHelper::getActions() in C:\xampp\htdocs\pgocaribbeantv\administrator\components\com_roksprocket\views\module\view.html.php on line 139
What might the problem be?
This is a known issue with Joomla 3.2.2, the getActions function was meant to be depreciated and then removed.
https://github.com/joomla/joomla-cms/pull/3061
For now you can try upgrading RockSprocket as they added a release to work around the bug (see their changelog):
http://www.rockettheme.com/joomla/extensions/roksprocket
I am trying to create a "Qt unit test" following this tutorial. I created a new project: Qt Gui Application with a header file as mentioned and a class that contains the test function. I added #CONFIG += testlib to my ".pro" file. However, when I run my code, I get this errors:
In function `simulateEvent':
error: undefined reference to `_imp___ZN5QTest15defaultKeyDelayEv'
error: undefined reference to `_imp___ZN5QTest15defaultKeyDelayEv'
error: undefined reference to `_imp___ZN5QTest5qWarnEPKcS1_i'
then in function 'mouseEvent':
error: undefined reference to `_imp___ZN5QTest17defaultMouseDelayEv'
error: undefined reference to `_imp___ZN5QTest17defaultMouseDelayEv'
error: undefined reference to `_imp___ZN5QTest17defaultMouseDelayEv'
error: undefined reference to `_imp___ZN5QTest17defaultMouseDelayEv'
error: undefined reference to `_imp___ZN5QTest5qWarnEPKcS1_i'
then in function 'simulateEvent' again:
error: undefined reference to `_imp___ZN5QTest15defaultKeyDelayEv'
error: undefined reference to `_imp___ZN5QTest15defaultKeyDelayEv'
error: undefined reference to `_imp___ZN5QTest5qWarnEPKcS1_i'
then in function 'mouseEvent' again:
error: undefined reference to `_imp___ZN5QTest17defaultMouseDelayEv'
error: undefined reference to `_imp___ZN5QTest17defaultMouseDelayEv'
error: undefined reference to `_imp___ZN5QTest17defaultMouseDelayEv'
error: undefined reference to `_imp___ZN5QTest17defaultMouseDelayEv'
error: undefined reference to `_imp___ZN5QTest5qWarnEPKcS1_i'
I could not find any explanation for this as everything looks right . what am I missing ?
Try QT += testlib, without starting #
Try Qt += declarative, testlib didn't work for me, but declarative did.
I had the same problem. In my case:
I used "delete" on an instance of a class what was inherited from QWidget.
I had to change the inheritance for my class from QWidget to QObject.