Closed shunmian closed 1 year ago
A bug happened!
Hi, I have followed the get started doc with my shadow-cljs.en
{:source-paths ["src"] :dependencies [[binaryage/devtools "1.0.6"] [nrepl "1.0.0"] [reagent "1.1.1"] [re-frame "1.3.0"] [day8.re-frame/tracing "0.6.2"] [day8.re-frame/re-frame-10x "1.2.2"]] :builds {:app {:target :browser :output-dir "public/js" :asset-path "/js" :modules {:app {:entries [reagent-frontend.core]}} :devtools {:after-load reagent-frontend.core/mount-root :preloads [day8.re-frame-10x.preload]} :dev {:compiler-options {:closure-defines {re-frame.trace.trace-enabled? true day8.re-frame.tracing.trace-enabled? true}}} :release {:build-options {:ns-aliases {day8.re-frame.tracing day8.re-frame.tracing-stubs}}}}} :dev-http {3000 {:root "public"}}}
When I do npx shadow-cljs watch app, it throw the below error
npx shadow-cljs watch app
shadow-cljs - watching build :app [:app] Configuring build. [:app] Compiling ... [:app] Build failure: Failed to inspect file /home/zwhs/zwhs/learn-clojure/reagent-frontend/node_modules/highlight.js/lib/languages/gml.js it was required from /home/zwhs/zwhs/learn-clojure/reagent-frontend/node_modules/highlight.js/lib/index.js Errors encountered while trying to parse file /home/zwhs/zwhs/learn-clojure/reagent-frontend/node_modules/highlight.js/lib/languages/gml.js {:line 1, :column 1, :message "The file could not be parsed as JavaScript."} RuntimeException: Exception parsing "/home/zwhs/zwhs/learn-clojure/reagent-frontend/node_modules/highlight.js/lib/languages/gml.js" com.google.javascript.jscomp.parsing.ParserRunner.parse (ParserRunner.java:148) com.google.javascript.jscomp.JsAst.parse (JsAst.java:157) com.google.javascript.jscomp.JsAst.getAstRoot (JsAst.java:63) shadow.build.closure.JsInspector.getFileInfo (JsInspector.java:185) shadow.build.closure.JsInspector.getFileInfoMap (JsInspector.java:199) shadow.build.npm/get-file-info*/fn--10739 (npm.clj:453) shadow.build.npm/get-file-info* (npm.clj:452) shadow.build.npm/get-file-info* (npm.clj:402) shadow.build.npm/get-file-info (npm.clj:513) shadow.build.npm/get-file-info (npm.clj:510) shadow.build.npm/find-resource-in-package (npm.clj:729) shadow.build.npm/find-resource-in-package (npm.clj:687) shadow.build.npm/find-resource (npm.clj:779) shadow.build.npm/find-resource (npm.clj:742) shadow.build.resolve/find-npm-resource (resolve.clj:122) shadow.build.resolve/find-npm-resource (resolve.clj:93) shadow.build.resolve/fn--11327 (resolve.clj:263) shadow.build.resolve/fn--11327 (resolve.clj:230) clojure.lang.MultiFn.invoke (MultiFn.java:244) shadow.build.resolve/find-resource-for-string (resolve.clj:80) shadow.build.resolve/find-resource-for-string (resolve.clj:69) shadow.build.resolve/resolve-string-require (resolve.clj:457) shadow.build.resolve/resolve-string-require (resolve.clj:440) shadow.build.resolve/resolve-require (resolve.clj:672) shadow.build.resolve/resolve-require (resolve.clj:665) shadow.build.resolve/resolve-deps/fn--11278 (resolve.clj:51) clojure.lang.PersistentVector.reduce (PersistentVector.java:343) clojure.core/reduce (core.clj:6885) clojure.core/reduce (core.clj:6868) shadow.cljs.util/reduce-> (util.clj:42) shadow.cljs.util/reduce-> (util.clj:41) shadow.build.resolve/resolve-deps (resolve.clj:49) shadow.build.resolve/resolve-deps (resolve.clj:33) shadow.build.resolve/resolve-symbol-require (resolve.clj:659) shadow.build.resolve/resolve-symbol-require (resolve.clj:619) shadow.build.resolve/resolve-require (resolve.clj:669) shadow.build.resolve/resolve-require (resolve.clj:665) shadow.build.resolve/resolve-deps/fn--11278 (resolve.clj:51) clojure.lang.PersistentVector.reduce (PersistentVector.java:343) clojure.core/reduce (core.clj:6885) clojure.core/reduce (core.clj:6868) shadow.cljs.util/reduce-> (util.clj:42) shadow.cljs.util/reduce-> (util.clj:41) shadow.build.resolve/resolve-deps (resolve.clj:49) shadow.build.resolve/resolve-deps (resolve.clj:33) shadow.build.resolve/resolve-symbol-require (resolve.clj:659) shadow.build.resolve/resolve-symbol-require (resolve.clj:619) shadow.build.resolve/resolve-require (resolve.clj:669) shadow.build.resolve/resolve-require (resolve.clj:665) shadow.build.resolve/resolve-deps/fn--11278 (resolve.clj:51) clojure.lang.PersistentVector.reduce (PersistentVector.java:343) clojure.core/reduce (core.clj:6885) clojure.core/reduce (core.clj:6868) shadow.cljs.util/reduce-> (util.clj:42) shadow.cljs.util/reduce-> (util.clj:41) shadow.build.resolve/resolve-deps (resolve.clj:49) shadow.build.resolve/resolve-deps (resolve.clj:33) shadow.build.resolve/resolve-symbol-require (resolve.clj:659) shadow.build.resolve/resolve-symbol-require (resolve.clj:619) shadow.build.resolve/resolve-require (resolve.clj:669) shadow.build.resolve/resolve-require (resolve.clj:665) shadow.build.resolve/resolve-deps/fn--11278 (resolve.clj:51) clojure.lang.PersistentVector.reduce (PersistentVector.java:343) clojure.core/reduce (core.clj:6885) clojure.core/reduce (core.clj:6868) shadow.cljs.util/reduce-> (util.clj:42) shadow.cljs.util/reduce-> (util.clj:41) shadow.build.resolve/resolve-deps (resolve.clj:49) shadow.build.resolve/resolve-deps (resolve.clj:33) shadow.build.resolve/resolve-symbol-require (resolve.clj:659) shadow.build.resolve/resolve-symbol-require (resolve.clj:619) shadow.build.resolve/resolve-require (resolve.clj:669) shadow.build.resolve/resolve-require (resolve.clj:665) shadow.build.resolve/resolve-deps/fn--11278 (resolve.clj:51) clojure.lang.PersistentVector.reduce (PersistentVector.java:343) clojure.core/reduce (core.clj:6885) clojure.core/reduce (core.clj:6868) shadow.cljs.util/reduce-> (util.clj:42) shadow.cljs.util/reduce-> (util.clj:41) shadow.build.resolve/resolve-deps (resolve.clj:49) Caused by: StackOverflowError: com.google.javascript.jscomp.parsing.IRFactory$CommentTracker.current (IRFactory.java:290) com.google.javascript.jscomp.parsing.IRFactory$CommentTracker.hasPendingCommentBefore (IRFactory.java:305) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1928) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.processBinaryExpression (IRFactory.java:1933) com.google.javascript.jscomp.parsing.IRFactory$TransformDispatcher.process (IRFactory.java:2986) com.google.javascript.jscomp.parsing.IRFactory.transform (IRFactory.java:850)
Any ideas?
1.2.2
1.1.1
17.0.2
1.3.0
Chrome
No response
fixed after use re-frame-10x "1.6.0".
re-frame-10x "1.6.0"
What happened?
A bug happened!
Hi, I have followed the get started doc with my shadow-cljs.en
When I do
npx shadow-cljs watch app
, it throw the below errorAny ideas?
10x Version
1.2.2
Reagent Version
1.1.1
React Version
17.0.2
re-frame Version
1.3.0
What browsers are you seeing the problem on?
Chrome
Relevant console output
No response