This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-05-23
Channels
- # announcements (5)
- # aws (8)
- # babashka (60)
- # beginners (561)
- # calva (8)
- # cider (17)
- # clj-kondo (1)
- # cljsrn (12)
- # clojure (36)
- # clojure-dev (3)
- # clojure-europe (3)
- # clojure-france (10)
- # clojure-greece (8)
- # clojure-italy (6)
- # clojure-spec (3)
- # clojure-uk (6)
- # clojurescript (30)
- # community-development (2)
- # conjure (15)
- # datascript (24)
- # figwheel-main (49)
- # fulcro (29)
- # helix (72)
- # off-topic (20)
- # pathom (7)
- # rum (7)
- # shadow-cljs (23)
- # spacemacs (6)
- # sql (8)
- # timbre (1)
- # xtdb (10)
Is it possible to create a nrepl connection into a production nodejs script?
release 0.2.1 version for https://github.com/flexsurfer/rn-shadow-steroid react navigation with hot reload is simpler now, and also supports build notifiers
I'm trying to require some js-files, for some reason I get the error:
Requested module does not have an export "EventDispatcher".
--- js/lul/OrbitControls.js:10
and many like it. the js-file looks like this:
import {
EventDispatcher,
MOUSE,
Quaternion,
Spherical,
TOUCH,
Vector2,
Vector3
} from "three";
when looking at your example: https://github.com/shadow-cljs/examples/blob/master/local-js/src/demo/foo.js
it seems like you are doing the same thing. so can't really figure out what I'm doing wrong@saikyun since "three" is a JS dependency that doesn't go through closure you cannot use refers like that. closure is rather picky on that subject and I haven't found a way to "allow all". import * as THREE from "three"
should do it.
I understand, am I understanding it correctly if I say require
/`module.exports` is commonjs? and that's what shadow-cljs prefers?
shadow-cljs prefers ESM but as soon as you are using npm modules you might be better off sticking with commonjs
the rules for that are a lot less strict and generally interop with other commonjs works a bit better
hmm, it seems that certain things doesn't get picked up by the import *
-part. but if I did the require(...)
-way it works. :x
hehe 😄 I don't mind, just putting it out there in case anyone else stumbles over the chat log 🙂
either way, thanks as always. shadow-cljs is currently being used both on my game project and at work. very happy with it.