Following on from getting Elm running on Glitch, I decided to turn myself to getting Clojurescript going as well. CLJS has a self-hosted compiler in the form of Lumo, which runs on node and the JS port of Google Closure Compiler, in theory letting me run and compilre CLJS on Glitch, yay!
The good news is: I did get ClojureScript compilation with Lumo working.
The bad news is: I can’t get it to work with any NPM libraries. Nor has a days work in conference with a couple other Lumo/CLJS people managed to figure out why. They should work, but they don’t.
You can see the error in action on this project: https://glitch.com/edit/#!/curved-prawn
I’ve opened an issue on the Lumo repo, which you can find here: https://github.com/anmonteiro/lumo/issues/421
But I’m not entirely sure it’s Lumo’s fault. The same code cloned locally will work (though I do use plain npm and a newer Node, as mentioned in the issue), so I’m wondering if it’s something to do with the unique way that glitch handles dependencies (caching, pnpm, linking, and so on). The stack trace actually throws from Google Closure, as you can see from the console in the linked Glitch project.
Any ideas appreciated. I’ll also link here in the issue.