Uncaught (in promise): TypeError: Cannot add property uuid, object is not extensible - angular-tree-component

I am using "angular-tree-component": "^8.0.3" to construct tree for the mine Angular7 Single Page Application(SPA).
I am following the documentation and creating tree but getting the following exception onces providing input to nodes in component.
core.js:14597 ERROR Error: Uncaught (in promise): TypeError: Cannot add property uuid, object is not extensible
TypeError: Cannot add property uuid, object is not extensible
at TreeNode.setField (tree-node.model.js:179)
at TreeNode.set [as id] (tree-node.model.js:170)
at new TreeNode (tree-node.model.js:30)
at MapSubscriber.project (tree-node.model.js:444)
at MapSubscriber._next (map.js:35)
at MapSubscriber.Subscriber.next (Subscriber.js:54)
at DistinctUntilChangedSubscriber._next (distinctUntilChanged.js:54)
at DistinctUntilChangedSubscriber.Subscriber.next (Subscriber.js:54)
at DistinctUntilChangedSubscriber._next (distinctUntilChanged.js:54)
at DistinctUntilChangedSubscriber.Subscriber.next (Subscriber.js:54)
at resolvePromise (zone.js:814)
at SafeSubscriber._error (zone.js:724)
at SafeSubscriber.__tryOrUnsub (Subscriber.js:196)
at SafeSubscriber.error (Subscriber.js:147)
at Subscriber._error (Subscriber.js:80)
at Subscriber.error (Subscriber.js:60)
at MapSubscriber._next (map.js:38)
at MapSubscriber.Subscriber.next (Subscriber.js:54)
at DistinctUntilChangedSubscriber._next (distinctUntilChanged.js:54)
at DistinctUntilChangedSubscriber.Subscriber.next (Subscriber.js:54)
what might be the cause behind this whether correctly fully data is not replicating to node or some any other type of issue.
Please any one help.
Thanks.

Related

error: Uncaught (in promise) AssertionError

I am a new Deno learner, I tried a tutorial code that uses MongoDB but I got the following error:
error: Uncaught (in promise) AssertionError
throw new AssertionError(msg);
^
at assert (https://deno.land/std#0.107.0/testing/asserts.ts:224:11)
at MongoClient.database (https://deno.land/x/mongo#v0.27.0/src/client.ts:67:5)
at file:///C:/Users/m/Desktop/Uproject/GuidApp/deno-survey/mongo.ts:6:19
As the project has many files, Let me know if is it needed to add some parts of project codes here?
But the whole project code can be find here: https://github.com/thecodeholic/deno-survey
I found that in the mongo.ts file of the project, there is a line like this:
client.connect(Deno.env.get("MONGODB_URI") || "");
That I must add the await keyword in front of it and change it like below:
await client.connect(Deno.env.get("MONGODB_URI") || "");
Problem resolved by this.

SAPUI5 Annotation structure cannot read property 'IndexOf' undefined

I've created a local annotation file based on an OData service.
And even without adding any annotations to the new annotation file, when I open Annotation modeler it says
Annotation structure cannot read property 'IndexOf' undefined
And I have not defined any annotations from the service level.
And Even I add some annotaions using the Code view they also not display when I run the application
When I check the console it displays following error
2018-08-09 12:18:45.755000 TypeError: Cannot read property 'indexOf' of undefined
at Object.getAbsolutePath (https://webide-hf01c42be.dispatcher.us3.hana.ondemand.com/plugins/pluginrepository/annotationmodeler/client/v1.33.1_1526463231420/config-preload.js:1:136)
at Object.<anonymous> (https://webide-hf01c42be.dispatcher.us3.hana.ondemand.com/plugins/pluginrepository/annotationmodeler/client/v1.33.1_1526463231420/config-preload.js:9:17064)
at r (https://webide-hf01c42be.dispatcher.us3.hana.ondemand.com/resources/~3502d451b8b72165ef3cf2fa0789ca9b3430f76e~/sap/watt/core/Core-preload.js:43:4628)
at r._settlePromiseFromHandler (https://webide-hf01c42be.dispatcher.us3.hana.ondemand.com/resources/~3502d451b8b72165ef3cf2fa0789ca9b3430f76e~/sap/watt/core/Core-preload.js:42:23011)
at r._settlePromise (https://webide-hf01c42be.dispatcher.us3.hana.ondemand.com/resources/~3502d451b8b72165ef3cf2fa0789ca9b3430f76e~/sap/watt/core/Core-preload.js:42:23814)
at r._settlePromise0 (https://webide-hf01c42be.dispatcher.us3.hana.ondemand.com/resources/~3502d451b8b72165ef3cf2fa0789ca9b3430f76e~/sap/watt/core/Core-preload.js:42:24515)
at r._settlePromises (https://webide-hf01c42be.dispatcher.us3.hana.ondemand.com/resources/~3502d451b8b72165ef3cf2fa0789ca9b3430f76e~/sap/watt/core/Core-preload.js:42:25845)
at r._drainQueue (https://webide-hf01c42be.dispatcher.us3.hana.ondemand.com/resources/~3502d451b8b72165ef3cf2fa0789ca9b3430f76e~/sap/watt/core/Core-preload.js:41:12469)
at r._drainQueues (https://webide-hf01c42be.dispatcher.us3.hana.ondemand.com/resources/~3502d451b8b72165ef3cf2fa0789ca9b3430f76e~/sap/watt/core/Core-preload.js:41:12530)
at drainQueues (https://webide-hf01c42be.dispatcher.us3.hana.ondemand.com/resources/~3502d451b8b72165ef3cf2fa0789ca9b3430f76e~/sap/watt/core/Core-preload.js:41:10559) -

Fatal error: Uncaught Error: Call to a member function toHtml() on boolean

I am using Magento 2 and porto theme. My issue is with layered navigation.
When I search anything in my store results shows along with custom attribute filters, created through Store > Attribute > Product.
When results shows and I click on attribute to filter further ajax loads and nothing happens.
These are the errors I can see in console.
Fatal error: Uncaught Error: Call to a member function toHtml() on boolean in /app/code/Mageplaza/LayeredNavigation/Controller/Search/Result/Index.php:132
Stack trace:
#0 /public_html/generated/code/Mageplaza/LayeredNavigation/Controller/Search/Result/Index/Interceptor.php(24): Mageplaza\LayeredNavigation\Controller\Search\Result\Index->execute()
#1 /public_html/vendor/magento/framework/App/Action/Action.php(107): Mageplaza\LayeredNavigation\Controller\Search\Result\Index\Interceptor->execute()
#2 /public_html/vendor/magento/framework/Interception/Interceptor.php(58): Magento\Framework\App\Action\Action->dispatch(Object(Magento\Framework\App\Request\Http))
#3 /public_html/vendor/magento/framework/Interception/Interceptor.php(138): Mageplaza\LayeredNavigation\Controller\Search\Result\Index\Interceptor->___callParent('dispatch', Array)
#4 /public_html/vendor/magento/framework/Interception/Interceptor.php(153): Mageplaza\LayeredNa in /public_html/app/code/Mageplaza/LayeredNavigation/Controller/Search/Result/Index.php on line 132
Please help.
Thank you in advance.

SAPUI5 - Uncaught TypeError: this.getRouter.navTo is not a function

I am referring to the code used in tdg master-detail demokit application.
I am getting an error "Uncaught TypeError: this.getRouter.navTo is not a function".
I have written a console.log("is router fine? "+ this.getRouter().toLocaleString()); before this.getRouter.navTo which prints as
"EventProvider company.accounts_positions_splitpage.MyRouter"
Any suggestions what is the issue?
Thanks
You have to call
this.getRouter().navTo()
instead of
this.getRouter.navTo()
With this.getRouter you do not execute the function, you just get the function as Object. There you try too execute the function navTo(), but that object itselve does not provide such a function.
With this.getRouter() you execute the function and you get the return value (a router) as Object. On that router you can now use navTo(), as you did in your console.log.

Meteor error in trying to use collections

I am currently pulling data from collections in the MongoDB but there are 2 in particular that will not work either giving me the following error:
Exception from sub Assets id i574gxNDc9RdHERNn TypeError: Cannot call method 'find' of undefined
Or:
TypeError: Cannot call method 'attachSchema' of undefined
Or:
Object # has no method 'attachSchema'
depending on how I configure it. Does anyone have an idea of what I am doing wrong. I am using the same code for the ones that work as well as the ones that are throwing errors.
The collection looks like this:
Assets = Collections.Assets = Meteor.Assets;
Querying in server/publish.js:
Meteor.publish("Assets", function (){
return Meteor.Assets.find({});
});
Changing it to:
new Mongo.Collection('Assets');
Gives error:
Exception from sub Assets id ZgzZyNYPmMr5gtFGn TypeError: Cannot call method 'find' of undefined
Running the following from the command line in the top (root) directory of the project might fix this (it helped me):
meteor add aldeed:collection2