You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without digging too deeply into recent changelists, it looks like using @enable 'serve jquery' or similar does nothing.
The "PicoChat" example still works, but only because it runs the @client method at some point, which -- I realized after looking at zappa.coffee -- causes @use 'zappa' to be called, which in turn seems to automatically do what @enable 'serve jquery', 'serve sammy' would do (among other things).
To see what I mean, try running the following app:
So as a workaround, I just @use 'zappa' in all my apps that need jquery or sammy, but the real fix might involve some minor code changes or a documentation update.
The text was updated successfully, but these errors were encountered:
Yeah, I think it's a documentation change that's needed. Zappa is now bundling some connect middleware to serve the vendor javascript, and it looks like an intentional change on @mauricemach's part.
Without digging too deeply into recent changelists, it looks like using
@enable 'serve jquery'
or similar does nothing.The "PicoChat" example still works, but only because it runs the
@client
method at some point, which -- I realized after looking atzappa.coffee
-- causes@use 'zappa'
to be called, which in turn seems to automatically do what@enable 'serve jquery', 'serve sammy'
would do (among other things).To see what I mean, try running the following app:
Then, try visiting http://localhost:3000/zappa/jquery.js -- no dice.
However, this works:
Now, http://localhost:3000/zappa/jquery.js yields what we expect.
So as a workaround, I just
@use 'zappa'
in all my apps that need jquery or sammy, but the real fix might involve some minor code changes or a documentation update.The text was updated successfully, but these errors were encountered: