Tyring to unit test ag-grid-react with react testing library but unfortunately, I tend to be getting the same error over and over despite numerous attempts changing the how the component is rendered in the test.
When the tests are run, this error is thrown every time:
Error: Uncaught [TypeError: this.eIconWrapper.insertAdjacentElement is not a function]
The ag-grid-react version is at 25.1.0
I have also attempted this walkthrough: https://github.com/ag-grid/react-data-grid/blob/main/podcast-player/v8/src/PodcastGrid.test.js by waiting for the grid to be in the dom but still the errors persist:
console.error node_modules/react-dom/cjs/react-dom.development.js:19527
The above error occurred in the <AgGridReact> component:
in AgGridReact (at grid/index.jsx:229)
Further down the error seems to be pointing towards some sidebar component:
TypeError: this.eIconWrapper.insertAdjacentElement is not a function
at SideBarButtonComp.Object.<anonymous>.SideBarButtonComp.postConstruct
Related
i am getting this error when debugging in web flutter:
Bad state: Source maps are not done loading.
at Object.j3 (http://localhost:62170/stack_trace_mapper.js:244:69)
at jT (http://localhost:62170/stack_trace_mapper.js:2641:10)
at http://localhost:62170/stack_trace_mapper.js:2635:42
at dart._StackTrace.new.toString (http://localhost:62170/dart_sdk.js:7956:19)
at Object.str (http://localhost:62170/dart_sdk.js:5654:32)
when running to line:
final Iterable frames = filter('${FlutterError.demangleStackTrace(stack)}'.trimRight().split('\n'));
after the deployment everything seems to work correctly, I also checked the consol and there are no errors.
I'm using Dexie.js version 3.0.3-rc.3 in a Vue JS project and I occasionally run into this exception in Chrome (86):
Failed to execute 'bound' on 'IDBKeyRange': The parameter is not a valid key.↵ DataError: Failed to execute 'bound' on 'IDBKeyRange': The parameter is not a valid key.
Here's a screenshot of the full error:
I'm fairly certain the problem lies with something in my data being undefined, but I'm trying to find a good way to troubleshoot this. I paused the Chrome dev tools on exceptions and inspected the code around this particular part of Dexie, but it doesn't reveal what data was used to make this exception occur.
Does anyone have any suggestions on how to find out what's actually wrong? It feels a bit like a needle in a haystack.
== Update ==
Below is the full call stack:
Try inspecting the call stack. I know it can be long until you reach a frame within your application code, but the failing call should be there!
The error popup with the following error message comes on the screen repeatedly when application is in idle state (no user activity is performed).
Error occurred on client: (TypeError): Unable to get property 'iterator_0' of undefined or null reference.
number: -2146823281
at handleEvent_206....EF34544...cache.html
at dispatchEvent_0..EF34544...cache.html
at sucess_184 ..
..
Can anyone give some pointers to navigate to the problamatic area in the code?
The fact that you're getting it repeatedly is probably due to the fact that you're performing an action on a timer (i.e. perform repeatedly an action).
From the small snippet you've shown, I don't think there's anything we can deduce. Do you have a larger stacktrace? It is still possible the error is in your own code (trying to invoke iterator() on a null object).
i'm incurring:
ERROR TypeError: Cannot read property 'hasOwnProperty' of undefined
at http://0.0.0.0:4200/vendor.bundle.js:34007:40
at Array.forEach (native)
at WebAnimationsPlayer.init (http://0.0.0.0:4200/vendor.bundle.js:34006:32)
at InjectableAnimationEngine.DomAnimationEngine._queuePlayer (http://0.0.0.0:4200/vendor.bundle.js:33317:16)
at InjectableAnimationEngine.DomAnimationEngine.animateTransition (http://0.0.0.0:4200/vendor.bundle.js:33232:14)
at InjectableAnimationEngine.DomAnimationEngine.setProperty (http://0.0.0.0:4200/vendor.bundle.js:33103:18)
at AnimationRenderer.setProperty (http://0.0.0.0:4200/vendor.bundle.js:66773:26)
at DebugRenderer2.setProperty (http://0.0.0.0:4200/vendor.bundle.js:13520:23)
at setElementProperty (http://0.0.0.0:4200/vendor.bundle.js:9797:19)
at checkAndUpdateElementValue (http://0.0.0.0:4200/vendor.bundle.js:9716:13)
at checkAndUpdateElementInline (http://0.0.0.0:4200/vendor.bundle.js:9650:24)
at checkAndUpdateNodeInline (http://0.0.0.0:4200/vendor.bundle.js:12341:23)
at checkAndUpdateNode (http://0.0.0.0:4200/vendor.bundle.js:12316:16)
at debugCheckAndUpdateNode (http://0.0.0.0:4200/vendor.bundle.js:12945:59)
at debugCheckRenderNodeFn (http://0.0.0.0:4200/vendor.bundle.js:12924:13)
after a second animation is invoked while a prior animation is still in progress using #angular/animations 4.0.2. if i let the first animation finish, the above error does not happen. how should i go about debugging this?
this was working in #angular 2.0.
EDIT: this seems to be this issue https://github.com/angular/angular/issues/16470
Today I did couple of updates on the front-end side of things, and then I did get the execution exception error, while running the app, that points to the written code within the target folder.
Error:
Execution exception
[IllegalStateException: java.lang.reflect.InvocationTargetException]
Pinter to the error on line 31 (/target/scala2.11/routes/main/controllers/ReverseRoutes.scala:31):
28 // #LINE:65
29 def versioned(file:Asset): Call = {
30 implicit val _rrc = new ReverseRouteContext(Map(("path", "/public")))
31 Call("GET", _prefix + { _defaultPrefix } + "vassets/" + implicitly[PathBindable[Asset]].unbind("file", file))
32 }
Where should I look for this error, as obviously I did not wrote the code within the target folder.
Note 1: Commented whatever I did after I did get the error, and I do still get the error.
Note 2: I did clean compile with no error, however when I try to run it through the browser I do get the error.
this error is strictly connected with template and using controllers call (your methods from controllers)
you have to localize on your template which controller method calls this error
for instance I had a problem with nullpointerexception and I found a problem. I had below controller:
#controllers.MyController.myMethod(object.getValue)
and it turns out that in db getValue had null and play reported it as a problem. he somehow detect that this value is null
Strange for me but maybe it will help