You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to get set up with the project's test suite and a REPL connected to the ClojureScript environment, but I cannot run the project from a local build.
Note: I am a relative novice when it comes to ClojureScript in general and shadow-cljs in particular, so there may be a lot I'm missing here. But here's a minimal number of steps to reproduce the issue I keep encountering:
Steps to reproduce the problem
clone the project
run npm install from the project root to grab the dependencies
run npx shadow-cljs compile lib to compile the library code
run node public/census/test/index.js to test the library code
Here's the error that results:
$ node public/census/test/index.js
SHADOW import error /path/to/census-geojson/public/census/cljs-runtime/ajax.xml_http_request.js
/path/to/census-geojson/public/census/census.js:70
/* ignore this, look at stacktrace */ fn.call(global, require, module, __filename, __dirname);
^
TypeError: Cannot read property 'set' of undefined
at /path/to/census-geojson/public/census/cljs-runtime/ajax/xml_http_request.cljs:31:5
at /path/to/census-geojson/public/census/cljs-runtime/ajax.xml_http_request.js:32:3
at global.SHADOW_IMPORT (/path/to/census-geojson/public/census/census.js:70:44)
at /path/to/census-geojson/public/census/census.js:1665:1 at /path/to/census-geojson/public/census/census.js:5:26
at Object.<anonymous> (/path/to/census-geojson/public/census/census.js:9:3)
at Module._compile (internal/modules/cjs/loader.js:778:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
at Module.load (internal/modules/cjs/loader.js:653:32)
at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
Please let me know if I need to clarify anything, or if there are any additional project setup pitfalls that I may encounter here.
The text was updated successfully, but these errors were encountered:
I am trying to get set up with the project's test suite and a REPL connected to the ClojureScript environment, but I cannot run the project from a local build.
Note: I am a relative novice when it comes to ClojureScript in general and
shadow-cljs
in particular, so there may be a lot I'm missing here. But here's a minimal number of steps to reproduce the issue I keep encountering:Steps to reproduce the problem
npm install
from the project root to grab the dependenciesnpx shadow-cljs compile lib
to compile the library codenode public/census/test/index.js
to test the library codeHere's the error that results:
Please let me know if I need to clarify anything, or if there are any additional project setup pitfalls that I may encounter here.
The text was updated successfully, but these errors were encountered: