Hi ,
After running "Yarn upgrade" on my project, I started getting errors in this "feature-tree.component.ts" component.
var $combobox = $('<select class="feature-tree-combobox" />');
let inputType = feature.inputType as any;
_.each(inputType.itemSource.items, function(opt) {
$("<option></option>")
//.attr('value', opt.value)
//.text(opt.displayText)
.appendTo($combobox);
});
The commented lines show : <<Property 'value' does not exist on type 'string'>> and <<Property 'displayText' does not exist on type 'string'>>.
After commenting out these lines, the app runs fine, so far.
Can you please point me to how to correct these errors ?
Regards, Abdourahmani
3 Answer(s)
-
0
Hi,
Yarn upgrade updates all npm dependencies and we don't suggest that until we upgrade npm dependencies. It could be related to any npm dependency in your project.
Can you share which npm dependencies updated with this command ? Then we can try to understand reason of this problem.
Thanks.
-
0
I ran into the same issue and i didn't do a "yarn upgrade". What I did was to add the project to my Bitbucket account (from Windows 10) then pull the project in my laptop (MAC) and this happened.
I think it would be ideal from a development perspective to prepare a vagrant file. Just a thought.
-
0
Thanks for the suggestion @JoseFernandez, Have you solved your problem as well ?