Re:Using JavaScript Modules in ClojureScript
by Arnavion on Friday January 27, 2017 @09:09PM
(#13504391)
Try `node --use_strict main.js`
[ Parent
| on HN ]
Re:Using JavaScript Modules in ClojureScript
by ethagnawl on Friday January 27, 2017 @09:12PM
(#13504412)
Thanks - that worked!
Do you know why that's necessary and why it wasn't mentioned in the tutorial?
Re:Using JavaScript Modules in ClojureScript
by swannodette on Friday January 27, 2017 @09:13PM
(#13504418)
You probably need to install a more recent version of Node.js. That's one of the first things mentioned.
Re:Using JavaScript Modules in ClojureScript
by ethagnawl on Friday January 27, 2017 @09:43PM
(#13504539)
Thanks, David. Upgrading to Node 7.4.0 allowed me to run `node main.js` without having to pass the flag.
Granted, I was using an outdated version of Node, but perhaps it'd be helpful to add a >= version number to the Node dependency blurb (a la JDK 8).
Either way, thanks for your continued efforts!