Fork me on GitHub
#shadow-cljs
<
2018-04-30
>
mjmeintjes07:04:14

I'm trying to figure out shadow-cljs' web worker support. I've set up the :modules, with a :worker modules that depends on :main and has :web-worker true. However, when I try to start my webworker, I get the following error: index.js:1 Uncaught ReferenceError: shadow$provide is not defined. This happens in the following line: shadow$provide["module$node_modules$object_assign$index"] = function(global,process,require,module,exports) {. Am I doing something obviously wrong?

thheller10:04:08

@mjmeintjes should be fixed in 2.3.13.

cljs 4
👍 4
kenny17:04:08

The nrepl.port file does not seem to be located in target/shadow-cljs/nrepl.port. Do I need to set a config value to get shadow-cljs to create it?

thheller17:04:51

@kenny should be .shadow-cljs/nrepl.port. target/shadow-cljs was used in old versions.

kenny17:04:03

Is symlinking still the recommended way to get nrepl to work with Cursive?

thheller17:04:40

nah. I would recommend setting a fixed nrepl port and connecting to that

4