I’m trying to build a tauri app and initially I was using typescript but coming from ocaml and other fp languages I can’t go back to typescript.
Every attempt at creating records and sum types always ends up with me introducing null or undefined which doesn’t look right to me.
Nor is it convenient even with EffectTS.
Is there a quick way to do this in 2024/25.
I wad trying to follow older template
Modifying stuff like bsconfig.json
to rescript.json
Any pointers would be helpful, thanks!
If I understand correctly, tauri just needs a working SPA setup, so the easiest would be to use create rescript app and select vite and react template. Then add the rest of the tauri config and it should work!
What problem did you face?
2 Likes
Ok so maybe I kind of jumped the gun on this I never tried building the spa and then adding tauri cli.
I was using initially the template above and modifying it in an ad-hoc to make it work.
I was getting some error in a specific place where a Promise was created.
Building the spa first and then add tauri works!
Thanks a lot!
2 Likes