This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-10-28
Channels
- # announcements (2)
- # babashka (16)
- # bangalore-clj (1)
- # beginners (93)
- # boot (11)
- # calva (5)
- # cider (13)
- # clj-kondo (49)
- # cljdoc (14)
- # cljs-dev (1)
- # clojure (99)
- # clojure-dev (3)
- # clojure-europe (1)
- # clojure-india (1)
- # clojure-italy (9)
- # clojure-nl (3)
- # clojure-poland (1)
- # clojure-russia (1)
- # clojure-spec (31)
- # clojure-uk (21)
- # clojured (2)
- # clojurescript (18)
- # core-async (12)
- # cursive (36)
- # data-science (1)
- # datomic (54)
- # duct (3)
- # emacs (33)
- # events (1)
- # fulcro (17)
- # jobs (1)
- # joker (8)
- # keechma (1)
- # leiningen (7)
- # malli (8)
- # nrepl (19)
- # pathom (6)
- # planck (18)
- # re-frame (20)
- # reagent (18)
- # shadow-cljs (3)
- # sql (7)
- # vim (31)
Hello, I need some help on self-hosting with webpack.
I'm making an online editor for ClojureScript using the cljs/compile-str
function.
The code totally works if I use it with the <script> tag.
But my project is mainly a webpack js project. If I import my ClojureScript using import, the compile-str
function will fail with the following:
{:error
#error {:message "Could not compile ", :data {:tag :cljs/analysis-error}, :cause #error {:message "Cannot read property 'findInternedVar' of null at line 1 ", :data {:file nil, :line 1, :column 1, :tag :cljs/analysis-error}, :cause #object[TypeError TypeError: Cannot read property 'findInternedVar' of null]}}}
Meanwhile, webpack has this error message:
WARNING in ./clojurescript/out/main.js 2660:154-228
Critical dependency: the request of a dependency is an expression
I suspect webpack altered the code. Any tips?How to make chrome extension using clojurescript? can anyone give me some guidelines about that?
but you don’t have to use this library, people were successful building chrome extensions with raw clojurescript js interop as well
but it's worth saying @U08E3BBST’s chromex
is an absolute joy to use (we use it in anger)
Anyone has some clojurescript code using Puppeteer as an example ?
I found taiko
has a nicer API for use with cljs
https://github.com/filipesilva/create-cljs-app/blob/master/template/src/e2e/core.cljs
it's still just using puppeteer, but has some nice helpers that work well with deftest/is
and doesn't require you to initialize the page and browser separately, which reduces the need to use kitchen-async (although it's still pretty nice to have it anyway)
yeah I only heard of it a month or so ago
I think it's pretty handy for the cases where you already have a decent test runner and are just missing the browser control
the taiko people have a test runner as well called gauge but I don't think it's necessary with deftest