OYIon / LiveSharp

Public repository for the LiveSharp project
96 stars 4 forks source link

OutOfMemoryException on Blazor with dotnet5 #90

Open msieker opened 4 years ago

msieker commented 4 years ago

I'm attempting to try out LiveSharp in my Blazor project. However, just adding the LiveSharp assembly to the Blazor project results in this:

image

The project is just a a default project created with dotnet new blazorwasm --hosted and then have LiveSharp and Microsoft.AspNetCore.SignalR.Client.

I'm running dotnet5 RC1, with Microsoft.AspNetCore.Components.WebAssembly at version 5.0.0-rc.1.20451.17 in the project.

ionoy commented 4 years ago

LiveSharp doesn't have the .net5 support yet. I'll try to finish it before the release.

ionoy commented 4 years ago

For some reason, I can't run this template even without LiveSharp installed.

Microsoft.JSInterop.JSException: Could not find any element matching selector '#app'.
f.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1 Error: Could not find any element matching selector '#app'.
f.printErr @ blazor.webassembly.js:1
blazor.webassembly.js:1     at Object.t.attachRootComponentToElement (https://localhost:5001/_framework/blazor.webassembly.js:1:11458)
f.printErr @ blazor.webassembly.js:1

EDIT: Seems like I have fixed it by renaming app.css to site.css. But now it runs fine for me with LiveSharp 1.6.10 installed and hot-reload working.

ionoy commented 3 years ago

@msieker do you have the same issue with the latest RC?