This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-07-09
Channels
- # announcements (1)
- # aws (4)
- # beginners (55)
- # calva (13)
- # cider (58)
- # clj-kondo (59)
- # cljs-dev (4)
- # clojure (21)
- # clojure-austin (1)
- # clojure-dev (2)
- # clojure-europe (4)
- # clojure-italy (9)
- # clojure-nl (13)
- # clojure-norway (4)
- # clojure-spec (12)
- # clojure-uk (15)
- # clojurescript (22)
- # cursive (11)
- # datomic (3)
- # duct (1)
- # events (1)
- # fulcro (6)
- # graalvm (28)
- # hoplon (9)
- # jobs (2)
- # jobs-discuss (21)
- # mount (14)
- # nrepl (4)
- # off-topic (38)
- # pathom (1)
- # perun (4)
- # re-frame (17)
- # reitit (32)
- # shadow-cljs (44)
- # testing (7)
- # tools-deps (62)
- # vim (10)
what’s the best way to determine whether you’re in dev/release mode in your clojurescript code?
@steedman87 we use closure defines for such things
@mccraigmccraig Just found that on the users guide!
Hello, when i try to use expo-three
node module in a shadow-cljs expo project, I get this error:
Uncaught Error: Cannot find module './suppressWarnings'
This happens when i require THREE
from expo-three
module.
I can see that the supressWarnings.ts
file is there in the repo where Three.ts file is in this repo: https://github.com/expo/expo-three/blob/master/src/Three.ts
Is this because the exported object is suppressExpoWarnings
but the filename is suppressWarnings
? I am weak on JavaScript and not sure if it is because of the way shadowcljs compiles the ts files or if there something else I am missing.Here is the repo for that issue: https://github.com/neupsh/rn-rf-shadow/tree/test-threejs
* clone, yarn watch
on one terminal, and once it compiles, yarn web
to open the react-native-web app on browser (if it does not automatically open the browser you can open http://localhost:19006/
@thheller from what I have gathered expo-three works on web as well. There is this project which demos it: https://github.com/EvanBacon/Expo-Pillar-Valley
@thheller no problem thanks for looking at it. I will try to figure out more but looks like plain java script projects do not have this issue. In any case if anyone else have any suggestions I am open for it 🙂
@neupsh one thing that looks different is that the expo project above has a webpack.config.js
which seems to do a whole bunch while your project has none. https://github.com/EvanBacon/Expo-Pillar-Valley/blob/master/client/webpack.config.js
I want to start my shadow-cljs with code to run my integration tests and i am using the start! function to start the server .. but i don't see how to pass in params for the port - https://github.com/thheller/shadow-cljs/blob/555befb961f204849524011eeafba1ab665c538a/src/main/shadow/cljs/devtools/server.clj#L409
@clojuregeek which "port"?
my server runs at localhost:8890 .... and my dev server is localhost:8888
shadow-cljs starts a http server, a nrepl server, a socket repl server and depending on config dev http servers
ok so i can run my tests using the http server and not run an additional server just for tests
they are webdriver tests
ok then it is probably enough to just compile once and then run the tests without having shadow-cljs running
i was using node to run them but it apparently doesn't respond sometime so my boss changed to start the server with code
thanks for your help