This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2021-01-05
Channels
- # announcements (14)
- # babashka (51)
- # beginners (154)
- # calva (24)
- # cider (4)
- # clj-kondo (24)
- # cljfx (11)
- # cljs-dev (3)
- # clojure (259)
- # clojure-europe (14)
- # clojure-nl (2)
- # clojure-seattle (8)
- # clojure-spec (6)
- # clojure-taiwan (1)
- # clojure-uk (52)
- # clojurescript (123)
- # conjure (43)
- # core-async (15)
- # datomic (14)
- # events (1)
- # fulcro (90)
- # helix (7)
- # jobs (6)
- # meander (10)
- # nrepl (1)
- # off-topic (13)
- # pathom (1)
- # portal (8)
- # re-frame (7)
- # reveal (11)
- # shadow-cljs (99)
- # spacemacs (11)
- # testing (11)
- # vim (63)
Hiya - I’m looking at using Portal while developing a health related app containing large statistical model. This is a shadow-cljs single page app. Early days yet, so I’m going through the Portal demos and code.
So, from the repo I can do `make e2e/jvm’ etc and they all work fine except for ‘make e2e/web’. This barfs with an error when loading Portal:
Downloading: djblue/portal/0.6.1/portal-0.6.1.pom from clojars
Downloading: djblue/portal/0.6.1/portal-0.6.1.jar from clojars
WARNING: Use of :main-opts with -A is deprecated. Use -M instead.
ClojureScript 1.10.764
cljs.user=> (ns cljs.user
(:require [clojure.core.protocols :refer [Datafiable]]
[ :refer [start]]
[portal.web :as p]))
cljs.user=> (def portal (p/open))
Execution error (TypeError) at (<cljs repl>:1).
Cannot set property 'onunload' of null
I’m guessing there’s something special you need in your dev environment so Chrome launches correctly for Portal? There was a super-brief mention of using headless Chrome in the apropos video.
Hi @U0YBFTSLS, I think you need to enable pop-ups for localhost so portal can open the child window