rxt1077 / MeshMon

A web app for viewing Meshtastic data
GNU General Public License v3.0
5 stars 1 forks source link

Built the prod version, now what? #3

Open tmarkson opened 1 year ago

tmarkson commented 1 year ago

I was able to compile the prod release. After running node app.js first time, I needed to install xmlhttprequest. After doing that, here is the output error and I'm not sure what to do. Would you help?

:~/MeshMon/resources/public/js/compiled $ node app.js
shadow-cljs - failed to load 21
shadow-cljs - failed to load 22
shadow-cljs - failed to load 29
shadow-cljs - failed to load 30
shadow-cljs - failed to load 53
/home/tcm/MeshMon/resources/public/js/compiled/app.js:1071
"errors","errors",-908790718),An=new C(null,"groupEnd","groupEnd",-337721382),Bn=new C(null,"atom","atom",-397043653),Cn=new C(null,"response-format","response-format",1664465322);var Dn={},En={},Fn=[];function Gn(a,b){var c=En[a];if(void 0!==c)return c;try{Fn.push(a);var d=Dn[a],e=shadow$provide[a];if(void 0===d){if(void 0===e)throw"Module not provided: "+a;d={exports:{}};Dn[a]=d}if(e){delete shadow$provide[a];try{e.call(d,ba,Gn,d,d.exports)}catch(h){throw console.warn("shadow-cljs - failed to load",a),h;}if(b){var f=b.globals;if(f)for(a=0;a<f.length;a++)window[f[a]]=d.exports}}}finally{Fn.pop()}return d.exports}Gn.cache={};Gn.resolve=function(a){return a};var Hn=Gn(3,{});var In=Gn(12,{});function Jn(a,b,c){var d=v(b.ignoreCase)?"gi":"g";d=v(b.multiline)?[d,"m"].join(""):d;return a.replace(new RegExp(b.source,v(b.unicode)?[d,"u"].join(""):d),c)}
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        ^

ReferenceError: window is not defined
    at /home/tcm/MeshMon/resources/public/js/compiled/app.js:304:276
    at /home/tcm/MeshMon/resources/public/js/compiled/app.js:276:99
    at shadow$provide.<computed> (/home/tcm/MeshMon/resources/public/js/compiled/app.js:276:237)
    at Gn (/home/tcm/MeshMon/resources/public/js/compiled/app.js:1071:422)
    at shadow$provide.<computed> (/home/tcm/MeshMon/resources/public/js/compiled/app.js:566:409)
    at Gn (/home/tcm/MeshMon/resources/public/js/compiled/app.js:1071:422)
    at shadow$provide.<computed> (/home/tcm/MeshMon/resources/public/js/compiled/app.js:583:290)
    at Gn (/home/tcm/MeshMon/resources/public/js/compiled/app.js:1071:422)
    at shadow$provide.<computed> (/home/tcm/MeshMon/resources/public/js/compiled/app.js:584:401)
    at Gn (/home/tcm/MeshMon/resources/public/js/compiled/app.js:1071:422)
tmarkson commented 1 year ago

I should note that running the dev version produces this for me:

:~/MeshMon/resources/public/js/compiled $ npx shadow-cljs watch app
shadow-cljs - config: /home/tcm/MeshMon/shadow-cljs.edn
shadow-cljs - HTTP server available at http://localhost:8280
shadow-cljs - HTTP server available at http://localhost:8290
shadow-cljs - server version: 2.19.9 running at http://localhost:9630
shadow-cljs - nREPL server started on port 8777
shadow-cljs - watching build :app
[:app] Configuring build.
[:app] Compiling ...
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
[:app] Build failure:
Multiple files failed to compile.
aborted par-compile, [:shadow.build.classpath/resource "rewrite_clj/zip/walk.cljc"] still waiting for #{rewrite-clj.zip.subedit}
{:aborted [:shadow.build.classpath/resource "rewrite_clj/zip/walk.cljc"], :pending #{rewrite-clj.zip.subedit}}
ExceptionInfo: aborted par-compile, [:shadow.build.classpath/resource "rewrite_clj/zip/walk.cljc"] still waiting for #{rewrite-clj.zip.subedit}
        shadow.build.compiler/par-compile-one (compiler.clj:1071)
        shadow.build.compiler/par-compile-one (compiler.clj:1036)
        shadow.build.compiler/par-compile-cljs-sources/fn--13484/iter--13506--13510/fn--13511/fn--13512/fn--13513 (compiler.clj:1154)
        clojure.core/apply (core.clj:667)
        clojure.core/with-bindings* (core.clj:1990)
        clojure.core/with-bindings* (core.clj:1990)
        clojure.core/apply (core.clj:671)
        clojure.core/bound-fn*/fn--5818 (core.clj:2020)
        java.util.concurrent.FutureTask.run (FutureTask.java:264)
        java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
        java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
        java.lang.Thread.run (Thread.java:829)
aborted par-compile, [:shadow.build.classpath/resource "rewrite_clj/zip/context.cljc"] still waiting for #{rewrite-clj.zip.walk rewrite-clj.zip.seqz}
{:aborted [:shadow.build.classpath/resource "rewrite_clj/zip/context.cljc"], :pending #{rewrite-clj.zip.walk rewrite-clj.zip.seqz}}
ExceptionInfo: aborted par-compile, [:shadow.build.classpath/resource "rewrite_clj/zip/context.cljc"] still waiting for #{rewrite-clj.zip.walk rewrite-clj.zip.seqz}
        shadow.build.compiler/par-compile-one (compiler.clj:1071)
        shadow.build.compiler/par-compile-one (compiler.clj:1036)
        shadow.build.compiler/par-compile-cljs-sources/fn--13484/iter--13506--13510/fn--13511/fn--13512/fn--13513 (compiler.clj:1154)
        clojure.core/apply (core.clj:667)
        clojure.core/with-bindings* (core.clj:1990)
        clojure.core/with-bindings* (core.clj:1990)
        clojure.core/apply (core.clj:671)
        clojure.core/bound-fn*/fn--5818 (core.clj:2020)
        java.util.concurrent.FutureTask.run (FutureTask.java:264)
        java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1128)
        java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:628)
        java.lang.Thread.run (Thread.java:829)