ClosureScript & NodeJS: Error: No *print-fn* fn set for evaluation environment
clojure, clojurescript, node.js
Solution
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.
Problem
I have followed the "hello world!" examples for NodeJS on both these guides - https://github.com/clojure/clojurescript/wiki/Quick-Start#running-clojurescript-on-nodejs - http://mmcgrana.github.io/2011/09/clojurescript-nodejs.html 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?