You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This bit of code unconditionally calls the global addEventListener in all ClojureScript environments, including node.js. I use Sente as a server in a nodejs environment, all compiled with shadow-cljs - if that makes any difference. I'm currently on 1.16.2, and tried to update to 1.19.2, which is how I ran into it.
The text was updated successfully, but these errors were encountered:
@bwalex Hi Alex- thanks for the report. PR welcome to exclude this behaviour from Node.js, otherwise I'll take care of this next time I'm on batched Sente work 👍
…ing inside NodeJS (@theasp)
This solves this problem:
```
SHADOW import error /home/asp/projects/xxx/.shadow-cljs/builds/server/dev/out/cljs-runtime/taoensso.sente.js
/home/asp/projects/xxx/target/private/js/server.js:64
/* ignore this, look at stacktrace */ fn.call(global, require, module, __filename, __dirname);
^
TypeError: goog.global.addEventListener is not a function
at /home/asp/projects/xxx/.shadow-cljs/builds/server/dev/out/cljs-runtime/taoensso/sente.cljc:1353:4
at global.SHADOW_IMPORT (/home/asp/projects/xxx/target/private/js/server.js:64:44)
at /home/asp/projects/xxx/target/private/js/server.js:1624:1
at Object.<anonymous> (/home/asp/projects/xxx/target/private/js/server.js:1638:3)
at Module._compile (node:internal/modules/cjs/loader:1233:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1287:10)
at Module.load (node:internal/modules/cjs/loader:1091:32)
at Function.Module._load (node:internal/modules/cjs/loader:938:12)
at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
at node:internal/main/run_main_module:23:47
```
sente/src/taoensso/sente.cljc
Line 1353 in 102c5b0
This bit of code unconditionally calls the global addEventListener in all ClojureScript environments, including node.js. I use Sente as a server in a nodejs environment, all compiled with shadow-cljs - if that makes any difference. I'm currently on 1.16.2, and tried to update to 1.19.2, which is how I ran into it.
The text was updated successfully, but these errors were encountered: