-
I've successfully instantiated an http server, swagger docs etc. Which is cool. I figured I'd push my luck all the way to the end, and see if I could generate a typesafe http client in the browser in scala JS, too.
To my astonishment, compiled in a scala JS project! It fell over at the This may well not be inside the intent / design of smithy4s - please feel free to say that, but I just want to check that I'm not missing an obvious trick / import / intent.
Is this something which has been successfully done before? It is "intended" to be possible? Pipe DreamInstantiate the client with laminars |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Summoning @keynmol who in all likelihood has the most extensive experience with using smithy4s in a front-end environment |
Beta Was this translation helpful? Give feedback.
-
Hehe, my time has come. From quick look at the build, it seems you have fallen into a common trap - in fact so common, I created a site for it: https://youforgotapercentagesignoracolon.com/#mill Specifically here: https://github.com/Quafadas/mill-full-stack/blob/master/build.sc#L31-L33 you're adding JVM versions (note the single To allay your doubts, it is indeed possible, as I'm writing an app with smithy4s on the frontend and it's already running somewhere on the internet :) just not ready for a release yet. |
Beta Was this translation helpful? Give feedback.
Hehe, my time has come. From quick look at the build, it seems you have fallen into a common trap - in fact so common, I created a site for it: https://youforgotapercentagesignoracolon.com/#mill
Specifically here: https://github.com/Quafadas/mill-full-stack/blob/master/build.sc#L31-L33 you're adding JVM versions (note the single
:
instead of::
) of Smithy4s dependencies to your frontend module.To allay your doubts, it is indeed possible, as I'm writing an app with smithy4s on the frontend and it's already running somewhere on the internet :) just not ready for a release yet.