I have followed the "hello world!" examples for NodeJS on both these guides
and for each I get this error
Error: No *print-fn* fn set for evaluation environment
Have I missed a step? This seems like a fairly basic problem ... does anyone know where print-fn is set?
ClojureScript is a compiler for Clojure that targets JavaScript. It is designed to emit JavaScript code which is compatible with the advanced compilation mode of the Google Closure optimizing compiler.
ClojureScript is a robust, practical, and fast programming language with a set of useful features that together form a simple, coherent, and powerful tool. Get Started! ClojureScript is a compiler for Clojure that targets JavaScript.
After 8 years of usage, we have grown to become one of the largest Clojure teams in the world and we are still growing. In fact, after Nubank and Cognitect we don't know of any larger Clojure development team. There's plenty of reasons to continue using Clojure and ClojureScript, many of which are covered here.
You can say
(enable-console-print!)
to print using console.log
.
Under the hood, enable-console-print!
sets *print-newline*
and *print-fn*
. Here's the source as of r2156.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With