I'm curious if anyone can repro the following issue with lumo 1.6.0
one sec, that was the wrong error
cljs.user=> (js/require "fs")
Cannot read property 'cljs$lang$ctorStr' of undefined
Object.cljs.core.pr_writer_impl (NO_SOURCE_FILE <embedded>:1703:280)
cljs.core.pr_writer (NO_SOURCE_FILE <embedded>:1705:415)
(NO_SOURCE_FILE <embedded>:1725:340)
Object.cljs.core.pr_sequential_writer (NO_SOURCE_FILE <embedded>:1692:265)
Object.cljs.core.print_prefix_map (NO_SOURCE_FILE <embedded>:1725:65)
Object.cljs.core.print_map (NO_SOURCE_FILE <embedded>:1726:359)
Object.cljs.core.pr_writer_impl (NO_SOURCE_FILE <embedded>:1700:126)
Object.cljs.core.pr_writer (NO_SOURCE_FILE <embedded>:1705:415)
Object.cljs.core.pr_seq_writer (NO_SOURCE_FILE <embedded>:1706:51)
Object.cljs.core.pr_sb_with_opts (NO_SOURCE_FILE <embedded>:1707:156)
cljs.user=>
if you (def fs (js/require "fs"))
you can use it
maybe it's the pretty-printer that's failing
(js/console.log (js/require "fs"))
works
yeah, that's my assumption
(.. js/Object (entries fs) (forEach (fn [[key value] index arr] (println value))))
that throws the same error
println with the keys works
and (js/console.log value)
works
Probably a printing error
Can you file an issue?
yeah
Btw: ClojureScript got a cljs.core/*command-line-args*
variable today
Going forward we'll be using this instead of lumo.core
's
This will probably be a breaking change
Neat!
I'm glad that's part of core
Issue submitted, please let me know if there's any other information you'd like