Hi. Anyone tried to set up shadow-clj with gitpod? It seems websocket is not properly served by https when gitpod serving application
For those who also facing the same issue solution can be found in fulcron workshop github project.
Hi, trying to use a JS library (https://brianium.github.io/watermarkjs/) from CLJs (re-frame project), I tried like this:
(:require ["watermarkjs" :as watermark]) and do:
(-> (watermark/watermark #js ["/img/field.jpg"])
(.image (-> (watermark/watermark.text.lowerRight "MyPhoto" "28px serif" "#fff" 0.5)))
(.then (fn [img]
(-> (js/document.getElementById "text")
(.appendChild img)))))
error:
TypeError: module$node_modules$watermarkjs$dist$watermark.watermark is not a function. (In 'module$node_modules$watermarkjs$dist$watermark.watermark(["1.jpg"])', 'module$node_modules$watermarkjs$dist$watermark.watermark' is undefined)
so, mainly the question is, how to correctly interact with JS library? Thanksthat is telling you that the watermark library does not have a named export named watermark
instead of watermark/watermark try just watermark?
or potentially it is a default export. not entirely clear from the docs what this package uses since I cannot fine an example of an import anywhere
looks like a dead abandoned lib anyway? the repo is archived