Mercurial / BlazorMedia

Blazor Library for Interacting with Browser Media Streaming APIs
MIT License
48 stars 10 forks source link

Fail on Build #6

Open schorges opened 4 years ago

schorges commented 4 years ago

fail on build blazor app :

Severity Code Description Project File Line Suppression State Error TS18003 Build: No entries were found in the configuration file "C: /Users/Administrator/.nuget/packages/blazormedia/0.2.333.326/contentFiles/any/netstandard2.0/tsconfig.json". The include paths were "[" * / "]", the exclude paths were "[]". Mobile H: \ Programming \ Mobile \ Mobile \ tsc 1

please help me

drma-tech commented 4 years ago

same thing for me

AbeBaehaki commented 4 years ago

I have the same issue when using BlazorMedia in Blazor WebAssembly v3.2.0 Preview 4. Seems like it was caused by the tsconfig.json included in the nuget package.

I resolved my issue by excluding the contentFiles from nuget by adding this to BlazorMedia package reference in my .csproj file.

    <PackageReference Include="BlazorMedia" Version="0.2.333.326">
      <ExcludeAssets>contentFiles</ExcludeAssets>
    </PackageReference>

And then I added BlazorMedia.js reference in my index.html file.

 <script src="_content/BlazorMedia/BlazorMedia.js"></script>

Then everything works fine! Hope it helps.

Mercurial commented 4 years ago

Hi guys, sorry I need to update the readme

borseno commented 4 years ago

Thank you @AbeBaehaki

I did the same in blazor server

But I'm getting the error you can see on the screen after my camera gets connected I constantly get that "server connection error" on the page but I still can see my camera working Anyway I wanna get rid of that error

image

borseno commented 4 years ago

@Mercurial any idea on that one?

borseno commented 4 years ago

Here's a repro repo: https://github.com/BadgerTheAdger/temp-repro-repo