INTERNAL COMPILER ERROR when trying to compile web3 package in :npm-deps

Description

When I try to compile empty Clojurescript project with :npm-deps {:web3 "0.19.0"} I get INTERNAL COMPILER ERROR which says "Please report this problem." so I'm reporting.

Using [org.clojure/clojurescript "1.9.671"] and [lein-figwheel "0.5.11"]

Here's full error:


Exception ----
java.lang.RuntimeException : INTERNAL COMPILER ERROR.
Please report this problem.

null
Node(NAME BigNumber): /Users/matus/www/clojure-hacking/npm-deps-test/node_modules/web3/node_modules/bignumber.js/bignumber.js:15:8
var BigNumber, crypto, parseNumeric,
Parent(VAR): /Users/matus/www/clojure-hacking/npm-deps-test/node_modules/web3/node_modules/bignumber.js/bignumber.js:15:4
var BigNumber, crypto, parseNumeric,

java.lang.NullPointerException :


Exception Stack Trace ----

clojure.core/eval core.clj: 3105
...
user/eval32738 REPL Input
...
figwheel-sidecar.repl-api/start-figwheel! repl_api.clj: 26
figwheel-sidecar.repl-api/start-figwheel! repl_api.clj: 29
...
clojure.core/alter-var-root core.clj: 5294
clojure.core/alter-var-root core.clj: 5299
...
figwheel-sidecar.repl-api/start-figwheel!/fn repl_api.clj: 29
clojure.core/apply core.clj: 646
...
figwheel-sidecar.system/start-figwheel! system.clj: 695
figwheel-sidecar.system/start-figwheel! system.clj: 737
clojure.core/apply core.clj: 646
...
figwheel-sidecar.system/start-figwheel!* system.clj: 693
figwheel-sidecar.system/start-figwheel-system system.clj: 658
figwheel-sidecar.system/dispatch-system-component-errors system.clj: 644
figwheel-sidecar.system/start-figwheel-system/fn system.clj: 658
com.stuartsierra.component.SystemMap/start component.cljc: 178
com.stuartsierra.component/start-system component.cljc: 161
com.stuartsierra.component/start-system component.cljc: 163
...
com.stuartsierra.component/update-system component.cljc: 129
com.stuartsierra.component/update-system component.cljc: 135
clojure.core/reduce core.clj: 6544
...
com.stuartsierra.component/update-system/fn component.cljc: 139
com.stuartsierra.component/try-action component.cljc: 117
clojure.core/apply core.clj: 648
...
com.stuartsierra.component/eval30841/fn/G component.cljc: 5 (repeats 2 times)
figwheel-sidecar.system.FigwheelSystem/start system.clj: 118
clojure.core/swap! core.clj: 2260
...
com.stuartsierra.component/eval30841/fn/G component.cljc: 5 (repeats 2 times)
com.stuartsierra.component.SystemMap/start component.cljc: 178
com.stuartsierra.component/start-system component.cljc: 161
com.stuartsierra.component/start-system component.cljc: 163
...
com.stuartsierra.component/update-system component.cljc: 129
com.stuartsierra.component/update-system component.cljc: 135
clojure.core/reduce core.clj: 6544
...
com.stuartsierra.component/update-system/fn component.cljc: 139
com.stuartsierra.component/try-action component.cljc: 117
clojure.core/apply core.clj: 648
...
com.stuartsierra.component/eval30841/fn/G component.cljc: 5 (repeats 2 times)
figwheel-sidecar.components.cljs-autobuild.CLJSAutobuild/start cljs_autobuild.clj: 255
figwheel-sidecar.components.cljs-autobuild/color-output/fn cljs_autobuild.clj: 79
figwheel-sidecar.build-middleware.stamp-and-clean/hook/fn stamp_and_clean.clj: 66
figwheel-sidecar.components.cljs-autobuild/open-urls-hook/fn cljs_autobuild.clj: 141
figwheel-sidecar.components.cljs-autobuild/catch-print-hook/fn cljs_autobuild.clj: 185
figwheel-sidecar.components.cljs-autobuild/figwheel-start-and-end-messages/fn cljs_autobuild.clj: 48
figwheel-sidecar.components.cljs-autobuild/notify-command-hook/fn cljs_autobuild.clj: 68
figwheel-sidecar.build-middleware.injection/hook/fn injection.clj: 197
figwheel-sidecar.components.cljs-autobuild/cljs-build cljs_autobuild.clj: 28
cljs.build.api/build api.clj: 202
cljs.closure/build closure.clj: 2235
cljs.closure/process-js-modules closure.clj: 2161
...
clojure.core/mapcat core.clj: 2674 (repeats 2 times)
clojure.core/apply core.clj: 641
clojure.core/seq core.clj: 137
...
clojure.core/map/fn core.clj: 2646
cljs.closure/process-js-modules/fn closure.clj: 2162
...
cljs.closure/eval7106/fn closure.clj: 1607
com.google.javascript.jscomp.Compiler.parse Compiler.java: 1037
com.google.javascript.jscomp.Compiler.parseInputs Compiler.java: 1811
com.google.javascript.jscomp.Compiler.processAMDAndCommonJSModules Compiler.java: 2120
com.google.javascript.jscomp.ProcessCommonJSModules.process ProcessCommonJSModules.java: 127
com.google.javascript.jscomp.NodeTraversal.traverseEs6 NodeTraversal.java: 553
com.google.javascript.jscomp.NodeTraversal.traverse NodeTraversal.java: 305
com.google.javascript.jscomp.NodeTraversal.traverseBranch NodeTraversal.java: 604
com.google.javascript.jscomp.NodeTraversal.handleScript NodeTraversal.java: 579
com.google.javascript.jscomp.NodeTraversal.traverseChildren NodeTraversal.java: 701
com.google.javascript.jscomp.NodeTraversal.traverseBranch NodeTraversal.java: 625
com.google.javascript.jscomp.NodeTraversal.traverseChildren NodeTraversal.java: 701
com.google.javascript.jscomp.NodeTraversal.traverseBranch NodeTraversal.java: 629
com.google.javascript.jscomp.ProcessCommonJSModules$RewriteModule.visit ProcessCommonJSModules.java: 705
com.google.javascript.jscomp.ProcessCommonJSModules$RewriteModule.maybeUpdateName ProcessCommonJSModules.java: 943
com.google.javascript.jscomp.ProcessCommonJSModules$RewriteModule.updateNameReference ProcessCommonJSModules.java: 1072
java.lang.NullPointerException:

Environment

Mac OS

Activity

Show:
David Nolen
July 11, 2017, 12:08 PM

Sorry the message is a bit confusing but you are reporting this to the wrong project. That's a compiler error internal to Google Closure Compiler not ClojureScript.

Assignee

Unassigned

Reporter

import

Labels

Approval

None

Patch

None

Affects versions

Priority

Minor
Configure