This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-05-15
Channels
- # announcements (17)
- # babashka (16)
- # beginners (17)
- # biff (13)
- # cider (63)
- # cljsrn (8)
- # clojure (34)
- # clojure-europe (12)
- # clojure-germany (4)
- # clojure-nl (2)
- # clojure-spec (17)
- # clojure-uk (2)
- # clojurescript (51)
- # code-reviews (1)
- # conjure (15)
- # cursive (16)
- # datomic (10)
- # emacs (4)
- # fulcro (13)
- # graalvm (4)
- # helix (3)
- # introduce-yourself (7)
- # kaocha (2)
- # lsp (4)
- # music (2)
- # off-topic (11)
- # re-frame (2)
- # reagent (3)
- # releases (1)
- # remote-jobs (1)
- # shadow-cljs (21)
- # spacemacs (4)
- # sql (1)
- # vim (2)
👋 I have this problem working with npm library called js-waku
https://stackoverflow.com/questions/66309813/the-required-js-dependency-readable-stream-writable-js-is-not-available-it-wa
I tried forcing version 2.0.2 of readable-stream
as suggested in SO solution
but get another error after that transpilation of BigInt is not supported
try :compiler-options {:output-feature-set :es2018}
in your build config. maybe :es2019
or :es2020
. not sure which language level bigints were
Seems it was in :es2020
but still no dice 😞
I get failed to convert sources
on a whole bunch of libraries
still that did not work same failed to convert sources
error
npx shadow-cljs watch frontend
shadow-cljs - config: /Users/yalu/Projects/nemonymous/shadow-cljs.edn
shadow-cljs - HTTP server available at
shadow-cljs - server version: 2.13.0 running at
shadow-cljs - nREPL server started on port 50869
shadow-cljs - watching build :frontend
[:frontend] Configuring build.
[:frontend] Compiling ...
[:frontend] Build failure:
failed to convert sources
{:tag :shadow.build.closure/convert-error, :sources [[:shadow.build.npm/resource "node_modules/object-assign/index.js"] [:shadow.build.npm/resource "node_modules/react/cjs/react.production.min.js"] [:shadow.build.npm/resource "node_modules/react/cjs/react.development.js"] [:shadow.build.npm/resource "node_modules/react/index.js"] .............................................
RuntimeException: INTERNAL COMPILER ERROR.
Please report this problem.
null
Node(SHEQ): node_modules/bcrypto/lib/native/bn.js:3605:6
if ((y & 1n) === 0n)
Parent(IF): node_modules/bcrypto/lib/native/bn.js:3605:2
if ((y & 1n) === 0n)
you can try using webpack with this method https://code.thheller.com/blog/shadow-cljs/2020/05/08/how-about-webpack-now.html#option-2-js-provider-external
are you sure this code is supposed to be supported in the browser? I see a bunch of node specific stuff so it looks like a node thing to me?
I am pretty sure it is supposed to be supported in the browser https://www.npmjs.com/package/js-waku