-
-
Notifications
You must be signed in to change notification settings - Fork 726
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Blazor Web App (.net8) - error: Cannot resolve '_blazor' when started by - electronize start #823
Comments
Same issue here ... Blazor Server project that was working with net7, just changed the TargetFramework to net8 and have the same error ! Hope that can be fixed so that we can migrate to the latest LTS dotnet |
Hi all.
the problem is in the condition 'if (!Wt.isBrowser)', this condition returns false the anchor tag is not generated to return the href necessary. the code of the Wt class is this one I don't know if this is related this is the same condition |
Thank you @rubenmonteiro for the deep dive into the source code of the issue ! So, the workaround that seem to work is to add |
I will test and give the feedback. |
@peter-bozovic it seems to work, no issue found until now. thanks for the tip, the workarounds I thought were a lot more complicated then this |
@peter-bozovic does anyone have any issue running the windows exe on release or debug? It seems that electron isnt being read |
I love you so much. |
.Net Version: Net8.0
ElectronNET.API: 23.6.1
ElectronNET.CLI Version: 23.6.1.0
.Net Version: Net8.0
Node.js version: v18.15.0
Windows 10 Enterprise
Windows 11 Pro
Tried in both windows versions.
Issue:
When I run the blazor web app through electronize start command, the app starts in electron window, but no click event works. In the dev tools console window it shows the error as "blazor.web.js:1 Uncaught (in promise) Error: Cannot resolve '_blazor'.".
Test Project on GitHub: https://github.com/elandev4ever/SimpleBlazorWebApp
Steps to Reproduce:
dotnet tool install ElectronNET.CLI -g
electronize init
electronize start
blazor.web.js:1 Uncaught (in promise) Error: Cannot resolve '_blazor'.
at xn._resolveUrl (blazor.web.js:1:93927)
at new xn (blazor.web.js:1:83462)
at Ln.build (blazor.web.js:1:99418)
at Oo.startConnection (blazor.web.js:1:135970)
at Oo.startCore (blazor.web.js:1:135408)
at Oo.start (blazor.web.js:1:135061)
at nr (blazor.web.js:1:151076)
Note: this issue might be related to the render modes that are introduced in .Net8. If I keep the render mode per page, and then remove the render mode attribute from razor page the error is not shown in console, but still the button click wont work because of no render mode.
since .net 8 just made official today, I guess the support for this might not exist yet. Until this sorted out, any temporary workaround would be great.
The text was updated successfully, but these errors were encountered: