It looks like Client.Startup() never fires. Manually firing it from the JS console makes the page light up, so clearly something is not right. Let me dig into this deeper, @tarmil/@jand42 any idea what's going on here?

By on 10/21/2018 2:37 PM ()

The doc after render has

1
<html lang="en" ws-runafterrender="WebSharper4.Site.HomePage$32$31()">

If in browser console make the call then all done!

1
(WebSharper4.Site.HomePage$32$31())();

The function itself does not call, but only declares. Maybe this will help you!

By on 10/22/2018 7:53 AM ()

You can follow the issue here on GitHub: https://github.com/dotnet-websharper/ui/issues/198

By on 10/24/2018 3:01 AM ()

Update after that WebSharper project templates please for

1
dotnet new -I WebSharper.Templates
By on 10/24/2018 4:59 AM ()

Are you also getting an error saying something like this?

1
Uncaught TypeError: Arrays.get(...) is not a constructor

That's what happens for me.

Interestingly, it works fine if there is also a call to the client <@ ... @> function elsewhere in the same page, so my guess is that there's a missing runtime dependency somewhere, which client happens to also fulfill. Hopefully I should be able to fix this quickly. In the meantime you can try to put client <@ Doc.Empty @> somewhere in your page as a workaround.

By on 10/24/2018 2:27 AM ()

Thank! It would be great. OnAfterRender is a useful feature.

By on 10/22/2018 3:29 AM ()
IntelliFactory Offices Copyright (c) 2011-2012 IntelliFactory. All rights reserved.
Home | Products | Consulting | Trainings | Blogs | Jobs | Contact Us | Terms of Use | Privacy Policy | Cookie Policy
Built with WebSharper