I'm trying to set up a web app using the kemal framework written in the crystal language. I followed the tutorial mentioned in the getting started guide here
However, I can't get even the most basic web app to work. The line Kemal.run
gives an error which traces to the line lib/kemal/src/kemal/param_parser.cr:69
and shows this error undefined constant HTTP::FormData
.
I found the HTTP::FormData
module https://github.com/RX14/multipart.cr. Adding this as a dependency and requiring it does not help.
Thanks in advance
You are probably using an old version of Crystal. Check with crystal -v
.
HTTP::FormData has been added in Crystal 0.21.0.