binaryage / cljs-oops

ClojureScript macros for convenient native Javascript object access.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[NodeJS] throws window is not defined

akiroz opened this issue · comments

When used in NodeJS, the library throws window is not defined unless advanced compilation is used.

Ah, I haven't really tested this under NodeJS.

Most likely the problem will be this line:

(if-let [devtools# (cljs.core/aget js/window "devtools")]

It is a helper code to present problem details via cljs-devtools "envelope".

You can probably work around it by setting :runtime-use-envelope config option to false.

:runtime-use-envelope true ; #{true falsy}