Severity Code Description Project File Line Suppression State
Error Multiple components use the tag 'MenuItem'. Components: Syncfusion.Blazor.Navigations.MenuItem, Syncfusion.Blazor.Navigations.MenuItem CMS C:\G\Case Manager Blazor Edition\CaseManager_SyncFusion\CMS\Pages\Scheduler.razor 159
There seems to be a conflict between my declared Syncfusion.Blazor reference in NuGet and all of these subset packages.
How do I resolve these hundreds of errors. These all starting appearing after I added the Document and PDF viewer NuGet packages. Now the errors won't go away....
|
<SfMenu TValue="MenuItem">
<Syncfusion.Blazor.Navigations.MenuItems>
<Syncfusion.Blazor.Navigations.MenuItem Text = "File" IconCss = "em-icons e-file">
<Syncfusion.Blazor.Navigations.MenuItems>
<Syncfusion.Blazor.Navigations.MenuItem Text= "Open" IconCss= "em-icons e-open"></Syncfusion.Blazor.Navigations.MenuItem>
<Syncfusion.Blazor.Navigations.MenuItem Text= "Save" IconCss= "em-icons e-save"></Syncfusion.Blazor.Navigations.MenuItem>
<Syncfusion.Blazor.Navigations.MenuItem Separator="true"></Syncfusion.Blazor.Navigations.MenuItem>
<Syncfusion.Blazor.Navigations.MenuItem Text= "Exit"></Syncfusion.Blazor.Navigations.MenuItem>
</Syncfusion.Blazor.Navigations.MenuItems>
</Syncfusion.Blazor.Navigations.MenuItem>
<Syncfusion.Blazor.Navigations.MenuItem Text = "Edit" IconCss = "em-icons e-edit">
<Syncfusion.Blazor.Navigations.MenuItems>
<Syncfusion.Blazor.Navigations.MenuItem Text= "Cut" IconCss= "em-icons e-cut"></Syncfusion.Blazor.Navigations.MenuItem>
<Syncfusion.Blazor.Navigations.MenuItem Text= "Copy" IconCss= "em-icons e-copy"></Syncfusion.Blazor.Navigations.MenuItem>
<Syncfusion.Blazor.Navigations.MenuItem Text= "Paste" IconCss= "em-icons e-paste"></Syncfusion.Blazor.Navigations.MenuItem>
</Syncfusion.Blazor.Navigations.MenuItems>
</Syncfusion.Blazor.Navigations.MenuItem>
<Syncfusion.Blazor.Navigations.MenuItem Text= "Help"></Syncfusion.Blazor.Navigations.MenuItem>
</Syncfusion.Blazor.Navigations.MenuItems>
</SfMenu> |
Are you serious?
That is probably because of a naming conflict with another NuGet package.....
You are correct, Miles. The issue is because of a naming conflict with another NuGet package. You can use the solution as we stated earlier on September 24, 2021.
If that post is helpful, please consider accepting it as the solution so that other members can locate it more quickly.
Ok I did. It is not a perfect solution by any means however.
Miles, within Syncfusion Blazor component package, we have unique namespace/ tag name for all Syncfusion component. You can use the below link for reference.
API link: https://help.syncfusion.com/cr/blazor/Syncfusion.Blazor.html
We can’t replicate your reported query in our end. Can you please confirm whether you use third party component with Syncfusion component and share the issue reproducible sample or replicate the issue in our attached sample.
Same issue here. As soon as you add NuGet package PdfViewer, you get these errors...
I followed these tutorials to integrate into a project created through Visual Studio Code Syncfusion Blazor helper
https://blazor.syncfusion.com/documentation/pdfviewer/getting-started/web-assembly-application
https://blazor.syncfusion.com/documentation/pdfviewer-2/getting-started/web-assembly-application
And now all Syncfusion types are seen as "duplicated" and with build errors
The reported issue will occur while using both Syncfusion.Blazor and Syncfusion.Blazor.SfPdfviewer/Syncfusion.Blazor.PdfViewe packages in the same application. While using the both the Nugets will throw ambiguous errors while compiling the project. So, we suggest you use Syncfusion.Blazor.SfPdfviewer/Syncfusion.Blazor.PdfViewe NuGet packages alone for the Blazor PDF Viewer. If you want to use other Syncfusion Blazor components please check and install Syncfusion Blazor individual NuGet packages. We have shared the documentation for your reference.
Documentation Link: https://blazor.syncfusion.com/documentation/nuget-packages/#for-blazor-server-application
Note: