Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

firebase build error: refers to file not in jar: cljsjs/common/firebase-analytics-externs.js #2064

Open
avelino opened this issue Apr 21, 2020 · 1 comment

Comments

@avelino
Copy link

avelino commented Apr 21, 2020

build command (shadow-cljs): yarn shadow-cljs watch functions
build backtrace:

shadow-cljs - starting via "clojure"
Downloading: cljsjs/firebase/7.5.0-0/firebase-7.5.0-0.pom from clojars
Downloading: cljsjs/firebase/7.5.0-0/firebase-7.5.0-0.jar from clojars
failed to start service
{:id :classpath}
ExceptionInfo: failed to start service
        shadow.runtime.services/start-many/fn--9528 (services.clj:135)
        shadow.runtime.services/start-many (services.clj:126)
        shadow.runtime.services/start-many (services.clj:105)
        shadow.runtime.services/start-all (services.clj:144)
        shadow.runtime.services/start-all (services.clj:139)
        shadow.cljs.devtools.server/start-system (server.clj:341)
        shadow.cljs.devtools.server/start-system (server.clj:203)
        shadow.cljs.devtools.server/start! (server.clj:481)
        shadow.cljs.devtools.server/start! (server.clj:382)
        shadow.cljs.devtools.server/start! (server.clj:385)
        shadow.cljs.devtools.server/start! (server.clj:382)
        shadow.cljs.devtools.server/from-cli (server.clj:613)
        shadow.cljs.devtools.server/from-cli (server.clj:589)
        clojure.lang.Var.applyTo (Var.java:705)
        clojure.core/apply (core.clj:665)
        clojure.core/apply (core.clj:660)
        shadow.cljs.devtools.cli/lazy-invoke (cli.clj:24)
        shadow.cljs.devtools.cli/lazy-invoke (cli.clj:21)
        shadow.cljs.devtools.cli/blocking-action (cli.clj:131)
        shadow.cljs.devtools.cli/blocking-action (cli.clj:118)
        shadow.cljs.devtools.cli/main (cli.clj:179)
        shadow.cljs.devtools.cli/main (cli.clj:134)
        clojure.core/apply (core.clj:669)
        clojure.core/apply (core.clj:660)
        shadow.cljs.devtools.cli/-main (cli.clj:221)
        shadow.cljs.devtools.cli/-main (cli.clj:219)
        clojure.lang.Var.applyTo (Var.java:705)
        clojure.core/apply (core.clj:665)
        clojure.main/main-opt (main.clj:514)
        clojure.main/main-opt (main.clj:510)
        clojure.main/main (main.clj:664)
        clojure.main/main (main.clj:616)
        clojure.lang.Var.applyTo (Var.java:705)
        clojure.main.main (main.java:40)
Caused by:
/Users/avelino/.m2/repository/cljsjs/firebase/7.5.0-0/firebase-7.5.0-0.jar deps.cljs refers to file not in jar: cljsjs/common/firebase-analytics-externs.js
{:tag :shadow.build.classpath/deps-cljs, :source-path #object[java.io.File 0x108e10bd "/Users/avelino/.m2/repository/cljsjs/firebase/7.5.0-0/firebase-7.5.0-0.jar"], :name "cljsjs/common/firebase-analytics-externs.js"}
ExceptionInfo: /Users/avelino/.m2/repository/cljsjs/firebase/7.5.0-0/firebase-7.5.0-0.jar deps.cljs refers to file not in jar: cljsjs/common/firebase-analytics-externs.js
        shadow.build.classpath/process-deps-cljs/get-index-rc--10958 (classpath.clj:261)
        shadow.build.classpath/process-deps-cljs/fn--10977 (classpath.clj:342)
        clojure.core/map/fn--5862/fn--5863 (core.clj:2742)
        clojure.lang.PersistentVector.reduce (PersistentVector.java:343)
        clojure.core/transduce (core.clj:6883)
        clojure.core/into (core.clj:6899)
        clojure.core/into (core.clj:6887)
        shadow.build.classpath/process-deps-cljs (classpath.clj:342)
        shadow.build.classpath/process-deps-cljs (classpath.clj:223)
        shadow.build.classpath/process-root-contents (classpath.clj:532)
        shadow.build.classpath/process-root-contents (classpath.clj:528)
        shadow.build.classpath/find-jar-resources (classpath.clj:562)
        shadow.build.classpath/find-jar-resources (classpath.clj:535)
        shadow.build.classpath/find-resources (classpath.clj:638)
        shadow.build.classpath/find-resources (classpath.clj:629)
        shadow.build.classpath/index-path* (classpath.clj:869)
        shadow.build.classpath/index-path* (classpath.clj:866)
        clojure.lang.PersistentVector.reduce (PersistentVector.java:343)
        clojure.core/reduce (core.clj:6827)
        clojure.core/reduce (core.clj:6810)
        shadow.build.classpath/index-classpath/fn--11157/fn--11158 (classpath.clj:988)
        clojure.lang.Atom.swap (Atom.java:37)
        clojure.core/swap! (core.clj:2352)
        clojure.core/swap! (core.clj:2345)
        shadow.build.classpath/index-classpath/fn--11157 (classpath.clj:988)
        shadow.build.classpath/index-classpath (classpath.clj:987)
        shadow.build.classpath/index-classpath (classpath.clj:982)
        shadow.build.classpath/index-classpath (classpath.clj:984)
        shadow.build.classpath/index-classpath (classpath.clj:982)
        shadow.cljs.devtools.server.common/fn--16425 (common.clj:92)
        shadow.cljs.devtools.server.common/fn--16425 (common.clj:90)
        clojure.core/apply (core.clj:665)
        clojure.core/apply (core.clj:660)
        shadow.runtime.services/start-one (services.clj:98)
        shadow.runtime.services/start-one (services.clj:87)
        shadow.runtime.services/start-many/fn--9528 (services.clj:127)
        shadow.runtime.services/start-many (services.clj:126)
        shadow.runtime.services/start-many (services.clj:105)
        shadow.runtime.services/start-all (services.clj:144)
        shadow.runtime.services/start-all (services.clj:139)
        shadow.cljs.devtools.server/start-system (server.clj:341)
        shadow.cljs.devtools.server/start-system (server.clj:203)
        shadow.cljs.devtools.server/start! (server.clj:481)
        shadow.cljs.devtools.server/start! (server.clj:382)
        shadow.cljs.devtools.server/start! (server.clj:385)
        shadow.cljs.devtools.server/start! (server.clj:382)
        shadow.cljs.devtools.server/from-cli (server.clj:613)
        shadow.cljs.devtools.server/from-cli (server.clj:589)
        clojure.lang.Var.applyTo (Var.java:705)
        clojure.core/apply (core.clj:665)
        clojure.core/apply (core.clj:660)
        shadow.cljs.devtools.cli/lazy-invoke (cli.clj:24)
        shadow.cljs.devtools.cli/lazy-invoke (cli.clj:21)
        shadow.cljs.devtools.cli/blocking-action (cli.clj:131)
        shadow.cljs.devtools.cli/blocking-action (cli.clj:118)
        shadow.cljs.devtools.cli/main (cli.clj:179)
        shadow.cljs.devtools.cli/main (cli.clj:134)
        clojure.core/apply (core.clj:669)
        clojure.core/apply (core.clj:660)
        shadow.cljs.devtools.cli/-main (cli.clj:221)
        shadow.cljs.devtools.cli/-main (cli.clj:219)
        clojure.lang.Var.applyTo (Var.java:705)
        clojure.core/apply (core.clj:665)
        clojure.main/main-opt (main.clj:514)
        clojure.main/main-opt (main.clj:510)
        clojure.main/main (main.clj:664)
        clojure.main/main (main.clj:616)
        clojure.lang.Var.applyTo (Var.java:705)
        clojure.main.main (main.java:40)

error Command failed with exit code 1.
@Deraen
Copy link
Member

Deraen commented Apr 21, 2020

Firebase package uses the externs from upstream package, probably a update removed one of the files referred by deps.cljs.

Note that Shadow-cljs doesn't support Cljsjs packages: https://shadow-cljs.github.io/docs/UsersGuide.html#cljsjs though it can use extern files, but usually this isn't what you want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants