portfolio icon indicating copy to clipboard operation
portfolio copied to clipboard

Portfolio not loading at the start

Open emil0r opened this issue 1 year ago • 1 comments

I get the following runtime error when trying to load a very barebone portfolio project. From the looks of it, the code tries to add a listener to a document that's not been loaded into the DOM just yet. If I edit any of the files and trigger a reload everything works as expected.

TypeError: Cannot read properties of null (reading 'addEventListener')
    at Function.eval [as cljs$core$IFn$_invoke$arity$variadic] (client.cljs:89:8)
    at Function.eval [as cljs$core$IFn$_invoke$arity$variadic] (ui.cljs:111:4)
    at eval (portfolio.cljs:6:4)
    at eval (<anonymous>)
    at goog.globalEval (main.js:434:11)
    at env.evalLoad (main.js:1405:12)
    at main.js:1612:12

emil0r avatar Jul 30 '24 13:07 emil0r

What does your index.html look like? Are you perhaps loading the js bundle in the document head?

cjohansen avatar Aug 01 '24 07:08 cjohansen

Indeed I was. Sorry :)

emil0r avatar Sep 16 '24 05:09 emil0r