Tuesday, May 24, 2016

Re: GWT 2.8b1: "runAsyncCallback7 is not a function" - compiler error with GWT.runAsync(...)?

I haven't managed to find any further info here... suppose I'll regard GWT.runAsync() as "broken" avoid it going forward.

I don't think its generally broken, otherwise lots of people would complain about it, myself included as we use code splitting at work. Does your app use a custom GWT linker? 

By default GWT 2.8 uses com.google.gwt.core.linker.CrossSiteIframeLinker and if you take a look at that class and at the method wrapDeferredFragment() you will see that this method is responsible creating the runAsyncCallback functions. Somehow these runAsyncCallback functions do not exist in your app and thus GWT.runAsync() fails in your app as it can not install the downloaded code.

-- J.

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment