Using the REPL build-specific
I'm using Calva with VSCode. My steps
- watch the build
D:\projects\census\census-geojson (master -> origin) (census-geojson@2.0.0)
λ shadow-cljs watch lib
- fire runtime in separate terminal
D:\projects\census\census-geojson (master -> origin) (census-geojson@2.0.0)
λ shadow-cljs cljs-repl lib
- "Jack in" to Calva on VSCode
clj꞉shadow.user꞉>
; Creating cljs repl session...
; Connecting cljs repl: shadow-cljs...
; The Calva Connection Log might have more connection progress information.
; Connected session: cljs, repl: node-repl
; Evaluating file: tests.cljs
; SHADOW import error D:\projects\census\census-geojson\.shadow-cljs\builds\node-repl\dev\out\cljs-runtime\shadow.js.shim.module$node_fetch.js
;
; Execution error (Error) at (<cljs repl>:1).
+ require() of ES Module D:\projects\census\census-geojson\node_modules\node-fetch\src\index.js from D:\projects\census\census-geojson\[stdin] not supported.
+ Instead change the require of index.js in D:\projects\census\census-geojson\[stdin] to a dynamic import() which is available in all CommonJS modules.
:repl/exception!
cljs꞉test.utils.tests꞉>
; nREPL Connection was closed