Ambiguous Errors project

Hi!

I'm facing a strange issue (One fine morning type) where my whole project is lit up with numerous errors on all razor pages. Common errors are like this:

  • \\Pages\ProjectAdd.razor:1357 Cannot resolve symbol 'FloatLabelType'
  • \\Pages\ProjectAdd.razor:1818 Ambiguous reference: Syncfusion.Blazor.DropDowns.FilterType Syncfusion.Blazor.DropDowns.FilterType match
  • \\Pages\ProjectAdd.razor:10447 Ambiguous reference: Syncfusion.Blazor.Buttons.LabelPosition Syncfusion.Blazor.Buttons.LabelPosition match
screen-shot

In the above examples, let's take FloatLabelType. The ambiguity is reported between FloatLabelType being present in both Syncfusion.Blazor and Syncfusion.Blazor.Inputs. All errors are like this. It seems, every enum is also present in Syncfusion.Blazor. I tried to isolate by creating named using directives but there is no change to the errors.

There is one different error in startup:

Startup.cs:1330
Ambiguous invocation: 
Microsoft.Extensions.DependencyInjection.IServiceCollection AddSyncfusionBlazor(this Microsoft.Extensions.DependencyInjection.IServiceCollection, bool) (in class SyncfusionBlazor) 
 Microsoft.Extensions.DependencyInjection.IServiceCollection AddSyncfusionBlazor(this Microsoft.Extensions.DependencyInjection.IServiceCollection, bool) (in class SyncfusionBlazor) match

3 Replies 1 reply marked as answer

DO DoomerDGR8 December 30, 2020 08:59 AM UTC

Turns out the packages in 18.4.x are now divided. I was only having Syncfusion.Blazor nuget and ended up upgrading it to 18.4 only. I have added more packages now and website is now much less red. I'm still facing issue though:

SfDialog:

        <SfDialog Width="400px" MinHeight="350px" EnableResize="true" Target="#ControlRegion" IsModal="true" @bind-Visible="@Visibility">
            <DialogButtons>
                <DialogButton OnClick="@DialogOkButtonClick" Content="OK" IsPrimary="true" />
            </DialogButtons>
        </SfDialog>

Code: 

    private bool Visibility { get; set; }

    private void DialogOkButtonClick()
    {
        Visibility    = false;
        _dialogHeader = string.Empty;
        _dialogText   = string.Empty;
    }

Now, I get the following errors:
  • RZ9991 The attribute names could not be inferred from bind attribute 'bind-Visible'. Bind attributes should be of the form 'bind' or 'bind-value' along with their corresponding optional parameters like 'bind-value:event', 'bind:format'
  • CS0428 Cannot convert method group 'DialogOkButtonClick' to non-delegate type 'object'. Did you intend to invoke the method?
The Dialog is almost a duplicate of your actual example. And this code was working before. These two erros prevent project compilation.



Marked as answer

DO DoomerDGR8 December 30, 2020 10:33 AM UTC

Adding @using Syncfusion.Blazor.Popups to the _Imports.razor solved my issue


MK Muthukumar Kannan Syncfusion Team December 30, 2020 06:19 PM UTC

Hi DoomerDGR8,

Thanks for contacting Syncfusion Support.

We hope your reported issue has been resolved by adding the @using statement in _Imports.razor.

If you face any getting started related issues from Syncfusion components, please refer to our documentation/demos below.

Documentation: https://blazor.syncfusion.com/documentation/introduction/
 

Please let us know if you need any assistance.

Regards,
Muthukumar K
 


Loader.
Up arrow icon