Fork me on GitHub
#clojurescript
<
2023-06-18
>
Steph Crown23:06:51

Hi. I get this error when I try to split modules. Can anyone help me with what could have caused the error as I'm not passing or making use of SHADOW_ENV anywhere.

Uncaught ReferenceError: SHADOW_ENV is not defined

hifumi12300:06:41

Without additional information on e.g. your shadow-cljs.edn file, it’ll be hard to tell.

thheller06:06:30

SHADOW_ENV is a special variable defined by the development build. my guess is that you are trying to load a module without loading the base module first

thheller06:06:07

so :modules {:base {} :x {:depends-on #{:base} ...}} you cannot just load the x.js. you must also load base.js beforehand