Clojurians
#lumo
<
2017-07-09
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

futuro17:07:49

I'm curious if anyone can repro the following issue with lumo 1.6.0

futuro17:07:57

one sec, that was the wrong error

futuro17:07:09

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=>

futuro17:07:48

if you (def fs (js/require "fs")) you can use it

hlolli17:07:52

maybe it's the pretty-printer that's failing

futuro17:07:12

(js/console.log (js/require "fs")) works

futuro17:07:16

yeah, that's my assumption

futuro17:07:27

(.. js/Object (entries fs) (forEach (fn [[key value] index arr] (println value))))

futuro17:07:39

that throws the same error

futuro17:07:43

println with the keys works

futuro17:07:03

and (js/console.log value) works

anmonteiro17:07:25

Probably a printing error

anmonteiro17:07:30

Can you file an issue?

anmonteiro17:07:19

Btw: ClojureScript got a cljs.core/*command-line-args* variable today

anmonteiro17:07:43

Going forward we'll be using this instead of lumo.core's

anmonteiro17:07:59

This will probably be a breaking change

futuro17:07:11

I'm glad that's part of core

futuro17:07:44

Issue submitted, please let me know if there's any other information you'd like