Can someone explain this (js/require "fs") in blog.utils.node file?
tangrammer opened this issue · comments
Juan A. Ruz commented
Hi folks,
I am trying to understand why and how can use a javascript code included into a webpage the "fs" nodejs dependency.
On the other hand this code caused me the following error "require is not defined" when i tried to load the compiled clojurescript into my browser so I had to comment all the code related with 'js/require fs'
Am I doing something wrong?
Thanks in advance
And have a good day
Juan
David Nolen commented
That file is only meant to be used with Node.js.
Juan A. Ruz commented
Thanks!