shadow-cljs

https://github.com/thheller/shadow-cljs | https://github.com/sponsors/thheller | https://www.patreon.com/thheller
sova-soars-the-sora 2021-07-01T03:01:10.357100Z

I think we need more info about your build environment... shadowcljs is hosting a server on 8080 presumably... what is hosting the server on 8081? You mention Firebase is also hosting something on 8080...

2021-07-01T03:02:21.357300Z

8081 is just shadowcljs without firebase connection

Aron 2021-07-01T03:26:50.357500Z

seeing the config would help a lot

thheller 2021-07-01T06:28:57.357700Z

@mitul I can't see your build config anywhere but if you are NOT using :dev-http then you need to configure :devtools {:watch-dir "foo/bar"}

thheller 2021-07-01T06:30:05.357900Z

the built-in :dev-http logs all requests and automatically figures out which css files to watch. so when it knows about the paths once (by visiting 8080) it'll then also work for 8081. :watch-dir should fix it so it works without visiting 8080 first

kennytilton 2021-07-01T19:20:20.361900Z

Trying to build the plain version https://github.com/thheller/reagent-react-native I get

While resolving: AwesomeProject@0.0.1
npm ERR! Found: react@16.12.0
npm ERR! node_modules/react
npm ERR!   react@"16.12.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer react@"16.9.0" from react-native@0.61.5
npm ERR! node_modules/react-native
npm ERR!   react-native@"0.61.5" from the root project
I love node so much. Any suggestions? I was not crazy about using the -force option. Thx!

thheller 2021-07-01T19:26:44.362500Z

how did you get that? what did you run?

kennytilton 2021-07-01T19:31:08.363500Z

I cloned the repo ^^^...ugh, forgot to rename AwesomeProject. n.m!

thheller 2021-07-01T19:33:12.363800Z

there is no AwesomeProject in that repo?

kennytilton 2021-07-01T19:49:33.367100Z

Well, I started by just cloning the repo and issuing the first instruction and got: $ npm install && cd react-native && npm install npm WARN deprecated querystring@0.2.0: The added 93 packages, and audited 94 packages in 4s 3 packages are looking for funding run npm fund for details found 0 vulnerabilities npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: AwesomeProject@0.0.1 npm ERR! Found: react@16.12.0 npm ERR! node_modules/react npm ERR! react@"16.12.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer react@"16.9.0" from react-native@0.61.5 npm ERR! node_modules/react-native npm ERR! react-native@"0.61.5" from the root project npm ERR! npm ERR! Fix the upstream dependency conflict, or retry npm ERR! this command with --force, or --legacy-peer-deps npm ERR! to accept an incorrect (and potentially broken) dependency resolution. npm ERR! npm ERR! See /Users/kennethtilton/paho.mqtt.javascript/.npm/eresolve-report.txt for a full report. npm ERR! A complete log of this run can be found in: npm ERR! /Users/kennethtilton/paho.mqtt.javascript/.npm/logs/2021-07-01T1945_29_923Z-debug.log Then I saw a note about how the the directory react-native got created and thought that was sth I should have done. So forget that. What about this npm madness? Can I just hack a json somewhere? I googled the error but quickly got depressed. πŸ™‚

thheller 2021-07-01T19:50:29.367400Z

hmm let me check. never seen that error before.

kennytilton 2021-07-01T19:51:28.368100Z

Thx! Gotta run, will check back in a couple. I am on Mac M1, fwiw

thheller 2021-07-01T19:51:46.368400Z

hmm I get that error as well. not a clue, never seen it before

thheller 2021-07-01T19:53:26.368900Z

npm install --legacy-peer-deps seems to do it. I guess something in npm change in how they handle dependency conflicts

thheller 2021-07-01T19:53:48.369400Z

but the react-native folder in that repo is ancient at this point. so probably best to recreate it

kennytilton 2021-07-02T07:56:47.380Z

Ugh, forgot to report that I did recreate react-native. I also have a recent Android Studio and have worked thru pure JS tutorials with emulators successfully, and also got an emulator up OK using https://github.com/PEZ/rn-rf-shadow, FWIW. But I am looking for a bare CLJS+RN "hello world" so I can apply my Matrix reactive library to come up with a new CLJS+RN framework. I thought your "plain" example sounded the "barest", but I can start from sth heftier. Mind you, the Android Studio emulator CLI cannot bring up an emulator either. The emulator CLI says "cannot find emulator executable". I get a kick out of that. πŸ™‚ I'll soldier on. Thx again for the quick and great support. I am saving that "legacy" incantation!

hadils 2021-07-01T20:46:39.376Z

Hi! I am trying to use shadow-cljs in a docker container as part of a Buddy CI pipeline. I don’t know how to build the classpath from my deps.edn file under the dev alias. It works as expected on my local machine (Intellij idea) but it complains about a missing dependency when I try to run it in a Docker container. Any suggestions?

kennytilton 2021-07-01T22:21:53.378500Z

Thx for the quick response. That legacy hack did the trick, but now the run-android flops on no emulator and I cannot get emulator to run an emulator. run-ios does not work either. I'll try your other versions....