Last active
April 11, 2018 04:28
-
-
Save chenyong/3c9a5267bcfa165c49a32418b23946c9 to your computer and use it in GitHub Desktop.
Some experience using JS dependencies in shadow-cljs.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [:browser] Compiling ... | |
| [:browser] Build completed. (138 files, 1 compiled, 0 warnings, 0.20s) | |
| [:browser] Compiling ... | |
| [:browser] Build completed. (138 files, 1 compiled, 0 warnings, 0.22s) | |
| [:browser] Compiling ... | |
| [:browser] Build completed. (138 files, 1 compiled, 0 warnings, 0.24s) | |
| [:browser] Compiling ... | |
| [:browser] Build completed. (138 files, 1 compiled, 0 warnings, 0.20s) | |
| [:browser] Compiling ... | |
| [:browser] Build failure: | |
| no source by provide: app.comp.container | |
| {:provide app.comp.container} | |
| ExceptionInfo: no source by provide: app.comp.container | |
| clojure.core/ex-info (core.clj:4739) | |
| clojure.core/ex-info (core.clj:4739) | |
| shadow.build.data/get-source-id-by-provide (data.clj:158) | |
| shadow.build.data/get-source-id-by-provide (data.clj:155) | |
| shadow.build.closure/require-replacement-map/fn--13734 (closure.clj:1505) | |
| clojure.lang.PersistentHashMap$NodeSeq.kvreduce (PersistentHashMap.java:1303) | |
| clojure.lang.PersistentHashMap$BitmapIndexedNode.kvreduce (PersistentHashMap.java:796) | |
| clojure.lang.PersistentHashMap.kvreduce (PersistentHashMap.java:236) | |
| ^Cshutting down ... | |
| =>> JS runtime disconnected. | |
| Worker shutdown. | |
| shutting down ... | |
| shutdown complete. | |
| shutdown complete. | |
| yarn | |
| =>> | |
| =>> | |
| =>> | |
| =>> fg | |
| -bash: fg: current: no such job | |
| =>> yarn watch | |
| yarn run v1.5.1 | |
| $ shadow-cljs watch browser | |
| shadow-cljs - config: /Users/chen/repo/mvc-works/threejs-workflow/shadow-cljs.edn version: 2.2.25 | |
| shadow-cljs - starting ... | |
| shadow-cljs - HTTP server for :browser available at http://localhost:7000 | |
| shadow-cljs - server running at http://0.0.0.0:9630 | |
| shadow-cljs - socket repl running at localhost:58843 | |
| shadow-cljs - nREPL server started on port 58845 | |
| shadow-cljs - watching build :browser | |
| [:browser] Configuring build. | |
| [:browser] Compiling ... | |
| [:browser] Build completed. (139 files, 4 compiled, 0 warnings, 4.00s) | |
| JS runtime connected. | |
| [:browser] Compiling ... | |
| [:browser] Build failure: | |
| no source by provide: module$node_modules$three$examples$js$loaders$OBJLoader | |
| {:provide module$node_modules$three$examples$js$loaders$OBJLoader} | |
| ExceptionInfo: no source by provide: module$node_modules$three$examples$js$loaders$OBJLoader | |
| clojure.core/ex-info (core.clj:4739) | |
| clojure.core/ex-info (core.clj:4739) | |
| shadow.build.data/get-source-id-by-provide (data.clj:158) | |
| shadow.build.data/get-source-id-by-provide (data.clj:155) | |
| shadow.build.data/get-source-by-provide (data.clj:161) | |
| shadow.build.data/get-source-by-provide (data.clj:160) | |
| shadow.build.resolve/resolve-string-require (resolve.clj:222) | |
| shadow.build.resolve/resolve-string-require (resolve.clj:212) | |
| [:browser] Compiling ... | |
| [:browser] Build completed. (138 files, 1 compiled, 0 warnings, 0.91s) | |
| JS runtime disconnected. | |
| JS runtime connected. | |
| [:browser] Compiling ... | |
| [:browser] Build completed. (138 files, 1 compiled, 0 warnings, 0.42s) | |
| JS runtime disconnected. | |
| JS runtime connected. | |
| [:browser] Compiling ... | |
| [:browser] Build completed. (138 files, 1 compiled, 0 warnings, 0.34s) | |
| [:browser] Compiling ... | |
| [:browser] Build completed. (138 files, 1 compiled, 0 warnings, 0.34s) | |
| [:browser] Compiling ... | |
| [:browser] Build completed. (138 files, 1 compiled, 0 warnings, 0.23s) | |
| [:browser] Compiling ... | |
| [:browser] Build completed. (138 files, 1 compiled, 0 warnings, 0.27s) | |
| [:browser] Compiling ... | |
| [:browser] Build completed. (138 files, 1 compiled, 0 warnings, 0.25s) | |
| [:browser] Compiling ... | |
| [:browser] Build completed. (138 files, 1 compiled, 0 warnings, 0.39s) | |
| [:browser] Compiling ... | |
| [:browser] Build completed. (138 files, 1 compiled, 0 warnings, 0.27s) | |
| shadow-cljs - dev http config change, restarting servers | |
| ^Cshutting down ... | |
| =>> JS runtime disconnected. | |
| yarn watch | |
| Worker shutdown. | |
| shutdown complete. | |
| yarn run v1.5.1 | |
| $ shadow-cljs watch browser | |
| shadow-cljs - config: /Users/chen/repo/mvc-works/threejs-workflow/shadow-cljs.edn version: 2.2.25 | |
| shadow-cljs - starting ... | |
| No config for build "browser" found. | |
| Build id required. | |
| ✨ Done in 12.21s. | |
| =>> yarn watch | |
| yarn run v1.5.1 | |
| $ shadow-cljs watch browser | |
| shadow-cljs - config: /Users/chen/repo/mvc-works/threejs-workflow/shadow-cljs.edn version: 2.2.25 | |
| shadow-cljs - starting ... | |
| shadow-cljs - HTTP server for :browser available at http://localhost:7000 | |
| shadow-cljs - server running at http://0.0.0.0:9630 | |
| shadow-cljs - socket repl running at localhost:65136 | |
| shadow-cljs - nREPL server started on port 65138 | |
| shadow-cljs - watching build :browser | |
| [:browser] Configuring build. | |
| [:browser] Compiling ... | |
| [:browser] Build completed. (138 files, 2 compiled, 0 warnings, 2.95s) | |
| JS runtime connected. | |
| [:browser] Compiling ... | |
| [:browser] Build failure: | |
| The required JS dependency "OBJLoader2" is not available, it was required by "app/main.cljs". | |
| You probably need to run: | |
| npm install OBJLoader2 | |
| See: https://shadow-cljs.github.io/docs/UsersGuide.html#npm-install | |
| [:browser] Configuring build. | |
| [:browser] Compiling ... | |
| [:browser] Build completed. (139 files, 3 compiled, 0 warnings, 2.63s) | |
| ^Cshutting down ... | |
| JS runtime disconnected. | |
| =>> Worker shutdown. | |
| shutdown complete. | |
| yarn watch | |
| yarn run v1.5.1 | |
| $ shadow-cljs watch browser | |
| shadow-cljs - config: /Users/chen/repo/mvc-works/threejs-workflow/shadow-cljs.edn version: 2.2.25 | |
| shadow-cljs - starting ... | |
| shadow-cljs - HTTP server for :browser available at http://localhost:7000 | |
| shadow-cljs - server running at http://0.0.0.0:9630 | |
| shadow-cljs - socket repl running at localhost:49263 | |
| shadow-cljs - nREPL server started on port 49265 | |
| shadow-cljs - watching build :browser | |
| [:browser] Configuring build. | |
| [:browser] Compiling ... | |
| [:browser] Build completed. (139 files, 1 compiled, 0 warnings, 2.40s) | |
| JS runtime connected. | |
| [:browser] Compiling ... | |
| [:browser] Build failure: | |
| no source by provide: module$loaders$OBJLoader2 | |
| {:provide module$loaders$OBJLoader2} | |
| ExceptionInfo: no source by provide: module$loaders$OBJLoader2 | |
| clojure.core/ex-info (core.clj:4739) | |
| clojure.core/ex-info (core.clj:4739) | |
| shadow.build.data/get-source-id-by-provide (data.clj:158) | |
| shadow.build.data/get-source-id-by-provide (data.clj:155) | |
| shadow.build.data/get-source-by-provide (data.clj:161) | |
| shadow.build.data/get-source-by-provide (data.clj:160) | |
| shadow.build.resolve/resolve-string-require (resolve.clj:222) | |
| shadow.build.resolve/resolve-string-require (resolve.clj:212) | |
| [:browser] Compiling ... | |
| [:browser] Build failure: | |
| The required JS dependency "LoaderSupport" is not available, it was required by "app/main.cljs". | |
| You probably need to run: | |
| npm install LoaderSupport | |
| See: https://shadow-cljs.github.io/docs/UsersGuide.html#npm-install | |
| ^Cshutting down ... | |
| =>> JS runtime disconnected. | |
| yarn watch | |
| yarn run v1.5.1 | |
| Worker shutdown. | |
| shutdown complete. | |
| $ shadow-cljs watch browser | |
| shadow-cljs - config: /Users/chen/repo/mvc-works/threejs-workflow/shadow-cljs.edn version: 2.2.25 | |
| shadow-cljs - starting ... | |
| shadow-cljs - HTTP server for :browser available at http://localhost:7000 | |
| shadow-cljs - server running at http://0.0.0.0:9630 | |
| shadow-cljs - socket repl running at localhost:50257 | |
| shadow-cljs - nREPL server started on port 50259 | |
| shadow-cljs - watching build :browser | |
| [:browser] Configuring build. | |
| [:browser] Compiling ... | |
| [:browser] Build failure: | |
| The required JS dependency "LoaderSupport" is not available, it was required by "app/main.cljs". | |
| You probably need to run: | |
| npm install LoaderSupport | |
| See: https://shadow-cljs.github.io/docs/UsersGuide.html#npm-install | |
| ^Cshutting down ... | |
| =>> yarn watch | |
| yarn run v1.5.1 | |
| $ shadow-cljs watch browser | |
| Worker shutdown. | |
| shutdown complete. | |
| shadow-cljs - config: /Users/chen/repo/mvc-works/threejs-workflow/shadow-cljs.edn version: 2.2.25 | |
| shadow-cljs - starting ... | |
| shadow-cljs - HTTP server for :browser available at http://localhost:7000 | |
| shadow-cljs - server running at http://0.0.0.0:9630 | |
| shadow-cljs - socket repl running at localhost:50353 | |
| shadow-cljs - nREPL server started on port 50355 | |
| shadow-cljs - watching build :browser | |
| [:browser] Configuring build. | |
| [:browser] Compiling ... | |
| [:browser] Build failure: | |
| The required JS dependency "there" is not available, it was required by "loaders/OBJLoader2.js". | |
| You probably need to run: | |
| npm install there | |
| See: https://shadow-cljs.github.io/docs/UsersGuide.html#npm-install | |
| [:browser] Compiling ... | |
| [:browser] Build completed. (140 files, 4 compiled, 0 warnings, 4.16s) | |
| JS runtime connected. | |
| [:browser] Compiling ... | |
| [:browser] Build failure: | |
| The required JS dependency "TSLLoader" is not available, it was required by "app/main.cljs". | |
| You probably need to run: | |
| npm install TSLLoader | |
| See: https://shadow-cljs.github.io/docs/UsersGuide.html#npm-install | |
| [:browser] Compiling ... | |
| [:browser] Build failure: | |
| errors in file: /Users/chen/repo/mvc-works/threejs-workflow/loaders/STLLoader.js | |
| {:js-str-offsets [], :js-esm false, :js-imports [], :js-invalid-requires [], :goog-provides [], :js-language "es3", :goog-module nil, :js-warnings [], :resource-name "loaders/STLLoader.js", :js-requires [], :js-errors [{:line 41, :column 13, :message "Semi-colon expected"}], :goog-requires [], :tag :shadow.build.npm/errors} | |
| ExceptionInfo: errors in file: /Users/chen/repo/mvc-works/threejs-workflow/loaders/STLLoader.js | |
| clojure.core/ex-info (core.clj:4739) | |
| clojure.core/ex-info (core.clj:4739) | |
| shadow.build.npm/get-file-info* (npm.clj:521) | |
| shadow.build.npm/get-file-info* (npm.clj:429) | |
| shadow.build.npm/get-file-info (npm.clj:556) | |
| shadow.build.npm/get-file-info (npm.clj:553) | |
| shadow.build.npm/js-resource-for-file (npm.clj:602) | |
| shadow.build.npm/js-resource-for-file (npm.clj:589) | |
| ^Cshutting down ... | |
| =>> JS runtime disconnected. | |
| yarn watch | |
| Worker shutdown. | |
| shutdown complete. | |
| yarn run v1.5.1 | |
| $ shadow-cljs watch browser | |
| shadow-cljs - config: /Users/chen/repo/mvc-works/threejs-workflow/shadow-cljs.edn version: 2.2.25 | |
| shadow-cljs - starting ... | |
| shadow-cljs - HTTP server for :browser available at http://localhost:7000 | |
| shadow-cljs - server running at http://0.0.0.0:9630 | |
| shadow-cljs - socket repl running at localhost:50855 | |
| shadow-cljs - nREPL server started on port 50857 | |
| shadow-cljs - watching build :browser | |
| [:browser] Configuring build. | |
| [:browser] Compiling ... | |
| [:browser] Build failure: | |
| errors in file: /Users/chen/repo/mvc-works/threejs-workflow/loaders/STLLoader.js | |
| {:js-str-offsets [], :js-esm false, :js-imports [], :js-invalid-requires [], :goog-provides [], :js-language "es3", :goog-module nil, :js-warnings [], :resource-name "loaders/STLLoader.js", :js-requires [], :js-errors [{:line 34, :column 9, :message "Semi-colon expected"}], :goog-requires [], :tag :shadow.build.npm/errors} | |
| ExceptionInfo: errors in file: /Users/chen/repo/mvc-works/threejs-workflow/loaders/STLLoader.js | |
| clojure.core/ex-info (core.clj:4739) | |
| clojure.core/ex-info (core.clj:4739) | |
| shadow.build.npm/get-file-info* (npm.clj:521) | |
| shadow.build.npm/get-file-info* (npm.clj:429) | |
| shadow.build.npm/get-file-info (npm.clj:556) | |
| shadow.build.npm/get-file-info (npm.clj:553) | |
| shadow.build.npm/js-resource-for-file (npm.clj:602) | |
| shadow.build.npm/js-resource-for-file (npm.clj:589) | |
| ^Cshutting down ... | |
| =>> yarn watch | |
| yarn run v1.5.1 | |
| $ shadow-cljs watch browser | |
| shadow-cljs - server pid exists but server appears to be dead, proceeding without server. | |
| shadow-cljs - config: /Users/chen/repo/mvc-works/threejs-workflow/shadow-cljs.edn version: 2.2.25 | |
| shadow-cljs - starting ... | |
| Worker shutdown. | |
| shutdown complete. | |
| shadow-cljs - HTTP server for :browser available at http://localhost:7000 | |
| shadow-cljs - server running at http://0.0.0.0:9630 | |
| shadow-cljs - socket repl running at localhost:51048 | |
| shadow-cljs - nREPL server started on port 51050 | |
| shadow-cljs - watching build :browser | |
| [:browser] Configuring build. | |
| [:browser] Compiling ... | |
| [:browser] Build completed. (141 files, 3 compiled, 0 warnings, 3.97s) | |
| JS runtime connected. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment