uno
uno copied to clipboard
Live Wizard working on Firefox but not Chrome
Current behavior
Original report from https://github.com/unoplatform/uno/pull/15400
I could only follow this guide using Firefox, not google chrome. I am on Debian 12
https://platform.uno/docs/articles/create-an-app-vscode.html
Reported by @JBrolin90
Expected behavior
No response
How to reproduce it (as minimally and precisely as possible)
No response
Workaround
No response
Works on UWP/WinUI
None
Environment
No response
NuGet package version(s)
No response
Affected platforms
No response
IDE
No response
IDE version
No response
Relevant plugins
No response
Anything else we need to know?
No response
@JBrolin90 If you open the browser's developer tools → console, are you seeing any errors?
Thank you Youssef1313 for converting this into an issue. I can confirm that new.platform.uno indeed works on Chrome on my Windows 11 Home, Windows 11 Pro (under VirtualBox) and on my Linux Mint. But it still does not work on my Debian 12 machine (under VirtualBox). (Chrome Version 121.0.6167.160 (Official Build) (64-bit)) I added a screenshot showing what it looks like and with developer tools activated, showing an empty console, i.e., no error messages. I did restart the Debian machine but to no avail. I also tried with both NAT and Bridge network adapters on the virtual machine. This Debian machine is freshly installed, just a week ago, with the purpose of learning Uno, Only installed Chrome, dotnet 8 and vscode. I did not tinker with anything.
Would be great to understand what is going on. For now it is a small inconvenience as I can use FireFox as a workaround
Thank you for your attention and let me know if I should provide some further details
Kind regards Joachim
@JBrolin90 thanks for the updates. In the console, there's a "Default levels" dropdown, can you select Verbose
as well, refresh the app and tell us what you see?
Yes, now something showed up
[ServiceWorker] Initializing uno-bootstrap.js:699 Active service worker found, skipping register Uno.UI.js:3716 Making persistent: /local Uno.UI.js:3716 Making persistent: /roaming Uno.UI.js:3716 Making persistent: /shared setImmediate.js:111 [Violation] 'message' handler took 302ms
Thanks. It's not showing enough information, still.
When testing with building a blank app (using a template from https://new.platform.uno), does the app start properly in this particular browser?
Yes, I get the "Hello Uno platform!" message, exactly as under Windows
Thanks. This is indeed, hiding some other issue, which may be related to webassembly features. Does https://calculator.platform.uno work?
Also could you try building the same hello app in release mode, using InterpreterAndAOT
uncommented in the project file? It will be closer to the configuration of the wizard.
You're welcome Yes https://calculator.platform.uno/ works well. I am now trying to run the release version, struggling a bit with all the options. Please hang on until I figure out how to issue a proper dotnet run command....
Yes, it seems to be working as well. This is what I did (Not that hard actually) $ cd ~/repos/Hello/Hello.Wasm $ dotnet run --confuguration Release
Then I opened localhost:5001 in Chrome and I got this after a few seconds:
Finally, again, I tried the new.platform.uno and it still does not work....
This is my create command, for reference
dotnet new unoapp -o Hello -id "com.companyname.Hello" -pub "O=Hello" -markup "csharp" -platforms "wasm" -theme-service -pwa False -theme "material" -presentation "mvux" -config false -di false -log "none" -nav "blank" -http false -loc false -server false -tests "none" -toolkit -dsp false
Thanks for the update.
Could you visit this link: https://lemon-beach-09f7c130f.4.azurestaticapps.net/?loglevel=info, this will show more information in the browser debug console, and paste the result here? This is a prerelease version of the wizard.
The app itself, still does not get past the startup banner. The debug console displays a few more lines
Registering service worker for / Uno.UI.js:3716 Making persistent: /local Uno.UI.js:3716 Making persistent: /roaming Uno.UI.js:3716 Making persistent: /shared setImmediate.js:111 [Violation] 'message' handler took 265ms service-worker.js:4 [ServiceWorker] Initializing uno-bootstrap.js:710 Service Worker Registered service-worker.js:7 [ServiceWorker] Installing offline worker service-worker.js:10 [ServiceWorker] Caching app binaries and content
Thank you, the lets go a level deeper, can you run it using https://lemon-beach-09f7c130f.4.azurestaticapps.net/?loglevel=debug
? It is going to be lots more verbose, make sure to paste it as a text file
Weird. It did not produce more output, only this: Active service worker found, skipping register Uno.UI.js:3716 Making persistent: /local Uno.UI.js:3716 Making persistent: /roaming Uno.UI.js:3716 Making persistent: /shared setImmediate.js:111 [Violation] 'message' handler took 215ms
And then one issue:
Depreciated feature used, one source
When I run that link in Chrome under Windows, I do get verbose output though.
This appear to also be happening on Ubuntu (both firefox and chrome as far as I've tried). The log on firefox gives this:
The log on chrome is not meaningful.
Took some days. I'm leaning towards a platform issue rather than an Uno issue. I moved my Debian 12 VM from my Windows 11 Home host to a new Linux Mint (LMDE 6) host. Now the project wizard works in the very same browser.. Moving back to the Windows host, the issue re-appear. I would be fine closing this issue. Potentially addressing it to VirtualBox instead.
In any case, thank you all for your kind support. I must say that I did learn a lot during these days
Thanks for the update! We'll close for now, but if someone finds more information about this, please feel free to comment.