Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Errors in "feature-tree.component.ts" after "yarn upgrade" #3782


User avatar
0
abdourahmani created

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)
  • User Avatar
    0
    ismcagdas created
    Support Team

    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.

  • User Avatar
    0
    josefernandez created

    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.

  • User Avatar
    0
    ismcagdas created
    Support Team

    Thanks for the suggestion @JoseFernandez, Have you solved your problem as well ?