This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-04-29
Channels
- # announcements (4)
- # architecture (1)
- # beginners (113)
- # boot (17)
- # calva (40)
- # cider (9)
- # clara (1)
- # cljs-dev (21)
- # cljsrn (21)
- # clojure (47)
- # clojure-dev (8)
- # clojure-europe (2)
- # clojure-italy (46)
- # clojure-nl (10)
- # clojure-spec (1)
- # clojure-turkiye (1)
- # clojure-uk (46)
- # clojurescript (102)
- # core-async (21)
- # cursive (35)
- # data-science (1)
- # datomic (7)
- # emacs (2)
- # graphql (1)
- # lumo (15)
- # nrepl (4)
- # nyc (1)
- # off-topic (5)
- # overtone (3)
- # pathom (10)
- # quil (6)
- # re-frame (30)
- # reagent (7)
- # reitit (33)
- # rewrite-clj (1)
- # shadow-cljs (37)
- # spacemacs (73)
- # test-check (3)
- # testing (2)
- # vim (59)
I believe I’ve followed the steps in the Quick Start
section and everything looks to be working with the exception of nothing showing in the browser’s console log
https://cljs.github.io/api/cljs.core/enable-console-printBANG did you try that function?
The instructions I’m following are here https://github.com/thheller/shadow-cljs#quick-start
We’re having issues with upgrading to re-frame-10x latest version (0.4.0). When running the dev builds npm install is ran trying to install the specific versions in deps.cljs of re-frame-10x. I didn’t find an options to turn that off. I saw this issue on re-frame-10x https://github.com/Day8/re-frame-10x/issues/188 but not sure what’s the exact status.
@talgiat the install logic should only trigger if the dependency is not already in package.json
?
so if you have react
in your package.json
already it should not attempt to install react
from deps.cljs
?
so on save this code recompiles, and I see the shadow-cljs icon in the bottom left of the browser…but the page does not reload
@stefan.age you need to define an :dev/after-load
hook that will re-render your page https://shadow-cljs.github.io/docs/UsersGuide.html#_lifecycle_hooks
@talgiat it doesn't for me. do you have any weird path setups? eg. package.json
not in the same directory as shadow-cljs.edn
?
so the problem is that is installs an older version of react over the one you have already installed?
so I just created a dummy new project, npm install react react-dom create-react-class
manually to get latest version
shadow-cljs - dependencies updated
NPM dependency "react" has installed version "^16.8.6"
"16.3.0" was required by jar:file:/home/thheller/.m2/repository/day8/re-frame/re-frame-10x/0.4.0/re-frame-10x-0.4.0.jar!/deps.cljs
NPM dependency "react-dom" has installed version "^16.8.6"
"16.3.0" was required by jar:file:/home/thheller/.m2/repository/day8/re-frame/re-frame-10x/0.4.0/re-frame-10x-0.4.0.jar!/deps.cljs
NPM dependency "create-react-class" has installed version "^15.6.3"
"15.6.2" was required by jar:file:/home/thheller/.m2/repository/day8/re-frame/re-frame-10x/0.4.0/re-frame-10x-0.4.0.jar!/deps.cljs
running: npm install --save [email protected] [email protected] [email protected]
+ [email protected]
+ [email protected]
+ [email protected]
added 3 packages from 247 contributors and audited 693 packages in 2.771s
found 0 vulnerabilities
{
"name": "deps-cljs-test",
"version": "0.0.1",
"private": true,
"devDependencies": {
"shadow-cljs": "2.8.35"
},
"dependencies": {
"create-react-class": "^15.6.3",
"highlight.js": "^9.12.0",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-flip-move": "^3.0.1",
"react-highlight.js": "^1.0.7"
}
}
the next start still complains about the version conflicts but besides that everything is fine and no install is triggered?
$ shadow-cljs server
shadow-cljs - config: /mnt/c/Users/thheller/tmp/deps-cljs-test/shadow-cljs.edn cli version: 2.8.35 node: v10.13.0
NPM dependency "react" has installed version "^16.8.6"
"16.3.0" was required by jar:file:/home/thheller/.m2/repository/day8/re-frame/re-frame-10x/0.4.0/re-frame-10x-0.4.0.jar!/deps.cljs
NPM dependency "react-dom" has installed version "^16.8.6"
"16.3.0" was required by jar:file:/home/thheller/.m2/repository/day8/re-frame/re-frame-10x/0.4.0/re-frame-10x-0.4.0.jar!/deps.cljs
NPM dependency "create-react-class" has installed version "^15.6.3"
"15.6.2" was required by jar:file:/home/thheller/.m2/repository/day8/re-frame/re-frame-10x/0.4.0/re-frame-10x-0.4.0.jar!/deps.cljs
[2019-04-29 20:50:58.607 - WARNING] TCP Port 9630 in use.
[2019-04-29 20:50:58.612 - WARNING] TCP Port 9631 in use.
[2019-04-29 20:50:58.617 - WARNING] TCP Port 9632 in use.
shadow-cljs - server version: 2.8.35 running at
shadow-cljs - nREPL server started on port 57985