Quantcast
Channel: Active questions tagged blazor - Stack Overflow
Viewing all articles
Browse latest Browse all 4839

blazor after visual studio update throws some strange JS warnings

$
0
0

After update visual studio to 17.11.3, in almost every file that i opened with visual studio threw some warning:

Severity    Code    Description Project File    Line    Suppression StateWarning (active)    TS1109  (JS) Expression expected.   Miscellaneous   D:\xxx\Components\Core\DialogConfirmComponent.razor__virtual.html__virtual.js   9   

As on screen

enter image description here

Is it some .net bug ? or i should do something with it? no idea what it is this _virtual.html_virtual.js? guess some temp file?

before update there was no such things...?

thanks and regards

Edit:

Minimal Reproducible Example

  1. Have 17.11.3 Visual Studio
  2. Dotnet new install MudBlazor.Templates
  3. New project - MudBlazor Web APP (server rendering mode / global)
  4. Open counter component. delete all.
  5. Paste into this counter component
<MudButton Variant="Variant.Filled" Color="Color.Primary" DropShadow="false" OnClick="@(()=>blabla())">Validate</MudButton>@code {    public void blabla()    {    }}
  1. Save and see the warnings

Viewing all articles
Browse latest Browse all 4839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>