Skip to content

Instantly share code, notes, and snippets.

@gmp26
Created August 24, 2021 16:26
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save gmp26/406dc44251b50132d3b085259e077017 to your computer and use it in GitHub Desktop.
Started seeing this when jacking in.
clj꞉shadow.user꞉>  ; Use `alt+enter` to evaluate
; Creating cljs repl session...
; Connecting cljs repl: shadow-cljs...
; The Calva Connection Log might have more connection progress information.
; Error while connecting cljs REPL: TypeError: Cannot read property ‘search’ of undefined
; Jack-in done.
clj꞉shadow.user꞉>
@gmp26
Copy link
Author

gmp26 commented Aug 24, 2021

Here's my shadow-cljs.edn:

{:source-paths ["src" "test"]

 :dependencies
 [;[com.cognitect/transit-js "0.8.867"]
  [reagent               "1.1.0"]
  [reagent-utils/reagent-utils         "0.3.3"]
  [re-frame              "1.2.0"]
  [aero/aero             "1.1.6"]
  [metosin/reitit        "0.4.2"]
  [cljs-ajax             "0.8.1"]
  [day8.re-frame/http-fx "0.2.2"]
  [winton-utils          "0.2.1"]
  [medley/medley         "1.3.0"]
  [cljs-css-modules      "0.2.1"]
  [binaryage/devtools    "1.0.2"]
  [cljstache/cljstache   "2.0.6"]
  [same/ish              "0.1.4"]
  [cider/cider-nrepl "0.21.0"]
  [org.clojars.ertucetin/re-frame-flow "0.1.4"]]

 :dev-http
 {3000 "resources/public"}

 :builds
 {:app {:target     :browser
        :output-dir "resources/public/js"
        :asset-path "/js"
        :devtools {:preloads [re-frame-flow.preload]}
        :compiler-options {:optimizations  :advanced
                           :output-wrapper false}
        :modules {:app {:init-fn transplants.core/init}}}

  :test-browser {:target     :browser-test
                 :test-dir   "out/browser/test"
                 :devtools   {:http-port 3021
                              :http-root "out/browser/test"}}}}

@gmp26
Copy link
Author

gmp26 commented Aug 24, 2021

And my deps.edn

{:deps {org.clojure/clojure {:mvn/version "1.10.3"}
        org.clojure/core.memoize {:mvn/version "1.0.236"}
        winton-utils/winton-utils          {:mvn/version "0.2.1"}
        aero/aero {:mvn/version "1.1.6"}
        org.apache.poi/poi {:mvn/version "4.1.2"}
        org.apache.poi/poi-ooxml {:mvn/version "4.1.2"}
        dk.ative/docjure {:mvn/version "1.14.0"}
        org.apache.commons/commons-math3 {:mvn/version "3.6.1"}
        org.clojars.ertucetin/re-frame-flow {:mvn/version "0.1.4"}}
 :paths ["src" "test" "resources" "target"]
 :aliases {;; if we wish to configure bootstrap css with sass:sass 
           :sass ["-M" "sass4clj.main" --source-paths]
           :config {:jvm-opts ["-Xmx500m" "-Xms100m"
                               "-Dvlaaad.reveal.prefs={:font-size,17}"]
                    :extra-deps {vlaaad/reveal {:mvn/version "1.3.194"}}
                    :main-opts  ["-m" "nrepl.cmdline"
                                 "--middleware" "[vlaaad.reveal.nrepl/middleware,cider.nrepl/cider-middleware]"]}
           ;; deps for kaocha (run with bin/kaocha)
           :kaocha {;:jvm-opts ["-Xmx1g"]
                    :extra-deps {lambdaisland/kaocha {:mvn/version "1.0.732"}}}
           ;; use this for cognitect test runner in CI/CD container
           :test {:extra-paths ["test"]
                  :extra-deps {com.cognitect/test-runner {:git/url "https://github.com/cognitect-labs/test-runner.git"
                                                          :sha "209b64504cb3bd3b99ecfec7937b358a879f55c1"}}
                  :main-opts ["-m" "cognitect.test-runner"]}
           ;; Use tcfg for calva repl-based tests
           :tcfg {:extra-paths ["src" "test"]}}

@gmp26
Copy link
Author

gmp26 commented Aug 24, 2021

And my package.json:

{
    "name": "transplants",
    "version": "0.1.0",
    "description": "A data driven lung and kidney transplant risk tool",
    "scripts": {
        "config": "bb ./bb-scripts/config.clj",
        "config-test": "look this up!",
        "start": "shadow-cljs watch app",
        "stop": "shadow-cljs stop",
        "watch-all": "shadow-cljs watch app test-browser",
        "build": "shadow-cljs release app",
        "build-verbose": "shadow-cljs release --verbose app",
        "report": "shadow-cljs run shadow.cljs.build-report app report.html",
        "debug-build": "shadow-cljs release app --debug",
        "serve": "serve --single resources/public --listen 5000",
        "dev-build": "shadow-cljs compile app",
        "repl": "shadow-cljs cljs-repl app",
        "browser-repl": "shadow-cljs browser-repl",
        "clojure-repl": "shadow-cljs clj-repl",
        "test": "shadow-cljs watch test",
        "test-browser": "shadow-cljs watch test-browser",
        "test-once": "shadow-cljs compile test",
        "clean": "rimraf resources/public/js",
        "nuke": "rimraf resources/public/js .shadow-cljs node_modules yarn.lock package-lock.json out report.html",
        "shadow-cljs-server": "shadow-cljs server"
    },
    "dependencies": {
        "@restart/hooks": "^0.4.0",
        "bootstrap": "^4.6.0",
        "dagre": "0.8.5",
        "prop-types-extra": "^1.1.1",
        "react": "17.0.1",
        "react-bootstrap": "^1.6.1",
        "react-dom": "17.0.1",
        "react-flow-renderer": "9.6.6",
        "react-overlays": "^5.1.1",
        "react-transition-group": "^4.4.2",
        "uncontrollable": "^7.2.1"
    },
    "devDependencies": {
        "rimraf": "^3.0.2",
        "serve": "^11.3.2",
        "shadow-cljs": "2.11.23"
    }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment