Closed ianharrigan closed 9 years ago
btw, for now ive just made the function _makeApiCall<A,B>
return null as i dont need it, and everything works fine.
Hi Ian, sorry for not getting to this earlier.
TL,DR: Try adding -D server
to your compilation.
It looks like the error is coming from the use of conditional compilation, where I use #if server .... #elseif client .... #end
. If you compile with -D server
it would insert the logic for the server, if you compile with -D client
it would insert the logic for the client side. If you don't have either, the function does not have a return, and the compiler errors out, even though you are not using the class.
Once the new minject
is released I'll be doing an updated release of ufront
(which will define "-D server" when it is used) and ufront-client
(which will define "-D client" when it is used). Both of them depend on ufront-mvc
, which can run on the server or the client.
Sorry for the confusion here. Let me know how it goes for you - and feel free to re-open if that doesn't fix the issue.
Hi Jason,
Im writing a really basic ufront server to use a test server for something else, however, im getting this:
This was previously working. Ive updated all libs to no avail. The source is really skeleton:
Any ideas? As i mentioned, this was working previously, so not sure what has changed.
Cheers, Ian