shadow-cljs

https://github.com/thheller/shadow-cljs | https://github.com/sponsors/thheller | https://www.patreon.com/thheller
thheller 2020-12-13T09:38:10.439200Z

@ggfpc12495 this is likely caused by a version conflict. make sure the dependency version listed in node_modules/recharts/package.json matches the actual node_modules/core-js/package.json version

thheller 2020-12-13T09:38:44.439600Z

don't know the lib but maybe ["@weknow/react-bubble-chart-d3" :refer (BubbleChart)] should be ["@weknow/react-bubble-chart-d3" :as BubbleChart]

p-himik 2020-12-13T10:23:12.439700Z

Nope, nothing there as well. Just 5 instances of js/Symbol usage and none of them seems to be the culprit.

GGfpc 2020-12-13T12:06:12.440700Z

Thanks @thheller you were right about the conflict. As for the second tip, I had tried that to no avail 😕

thheller 2020-12-13T19:08:31.441500Z

@ggfpc12495 might also be ["@weknow/react-bubble-chart-d3" :default BubbleChart] see the translation table at https://shadow-cljs.github.io/docs/UsersGuide.html#_using_npm_packages

GGfpc 2020-12-13T19:19:18.441900Z

I'm not sure if it's related to the import If you read this thread you can see some suggestions that I've tried https://clojurians.slack.com/archives/C6N245JGG/p1607808078432400

2020-12-13T20:39:41.443Z

I'm getting this error in my ci:

WARNING: When invoking clojure.main, use -M
$ npx karma start --single-run
13 12 2020 20:36:56.964:WARN [filelist]: Pattern "/builds/buidler/prj/target/ci.js" does not match any file.
13 12 2020 20:36:56.975:INFO [karma-server]: Karma v5.2.3 server started at <http://localhost:9876/>
13 12 2020 20:36:56.976:INFO [launcher]: Launching browsers ChromeHeadlessNoSandbox with concurrency unlimited
13 12 2020 20:36:56.983:INFO [launcher]: Starting browser ChromeHeadless
13 12 2020 20:36:58.523:INFO [Chrome Headless 87.0.4280.66 (Linux x86_64)]: Connected on socket tCMp7MAbveBvUWK6AAAA with id 26441006
Chrome Headless 87.0.4280.66 (Linux x86_64) ERROR
  ReferenceError: shadow is not defined
      at eval (eval at &lt;anonymous&gt; (/builds/buidler/prj/node_modules/karma-cljs-test/adapter.js:6:7), &lt;anonymous&gt;:1:1)
      at ContextKarma.start (/builds/buidler/prj/node_modules/karma-cljs-test/adapter.js:6:7)
      at ContextKarma.loaded (<http://localhost:9876/context.js:180:14>)
      at <http://localhost:9876/context.html:36:22>
Cleaning up file based variables
ERROR: Job failed: exit code 1
It just randomly started happening without any related changes. Now if I go back to the last passing build and try to rebuild it, that fails too.

thheller 2020-12-14T09:17:32.448Z

13 12 2020 20:36:56.964:WARN [filelist]: Pattern "/builds/buidler/prj/target/ci.js" does not match any file.

thheller 2020-12-14T09:17:51.448400Z

yeah looks like the file isn't created properly, likely OOM

2020-12-13T22:18:24.443100Z

Maybe it's the OOM killer. Looks like this issue has come up before https://clojurians-log.clojureverse.org/shadow-cljs/2019-01-05