This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-12-25
Channels
- # adventofcode (18)
- # announcements (10)
- # beginners (59)
- # calva (9)
- # cider (1)
- # clojure (43)
- # clojure-austin (1)
- # clojure-europe (6)
- # clojure-italy (2)
- # clojure-nl (1)
- # clojure-uk (3)
- # clojurescript (8)
- # cursive (3)
- # emacs (3)
- # fulcro (3)
- # hoplon (1)
- # klipse (1)
- # off-topic (24)
- # reagent (2)
- # reitit (1)
- # shadow-cljs (41)
- # specter (5)
- # vim (1)
Hi fellas! Bumped into Uncaught Error: No protocol method IMapEntry.-key defined for type object: (:page-id "notes")
Happens when code was generated with release compilation in secretary on some ubuntu linux (14.04 LTS).
Same sources compile differently [;)] on macOS High Sierra and don’t cause any trouble after.
Versions
macOS
shadow-cljs 6.4.1
lein 2.8.1
ubuntu
shadow-cljs 6.4.1
lein 2.6.1
Yep, this is an artifact after compilation on ubuntu system
thanks! a moment
hmm those don't affect the compiler. there is nothing system dependent in the compiler at all.
does the error appear when compiling with shadow-cljs release your-build --pseudo-names
?
jvms may also be different, I think
it probably is just externs. you can confirm that if the error goes away with --pseudo-names
pretty much
yep, trying it
issue persists
yup, full stracktrace
app.js?mtime=1545734833000:1642 Uncaught Error: No protocol method IMapEntry.-key defined for type object: (:page-id "notes")
at $cljs$core$missing_protocol$$ (app.js?mtime=1545734833000:1642)
at $cljs$core$_key$$ (app.js?mtime=1545734833000:1883)
at app.js?mtime=1545734833000:10170
at $cljs$core$seq_reduce$cljs$0core$0IFn$0_invoke$0arity$03$$ (app.js?mtime=1545734833000:3895)
at $cljs$core$Cons$$.$JSCompiler_prototypeAlias$$.$cljs$core$IReduce$_reduce$arity$3$ (app.js?mtime=1545734833000:4523)
at $cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$ (app.js?mtime=1545734833000:3951)
at app.js?mtime=1545734833000:10167
at $cljs$core$array_reduce$cljs$0core$0IFn$0_invoke$0arity$04$$ (app.js?mtime=1545734833000:2864)
at $cljs$core$IndexedSeq$$.$JSCompiler_prototypeAlias$$.$cljs$core$IReduce$_reduce$arity$2$ (app.js?mtime=1545734833000:3016)
at $cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$02$$ (app.js?mtime=1545734833000:3947)
$cljs$core$missing_protocol$$ @ app.js?mtime=1545734833000:1642
$cljs$core$_key$$ @ app.js?mtime=1545734833000:1883
(anonymous) @ app.js?mtime=1545734833000:10170
$cljs$core$seq_reduce$cljs$0core$0IFn$0_invoke$0arity$03$$ @ app.js?mtime=1545734833000:3895
$JSCompiler_prototypeAlias$$.$cljs$core$IReduce$_reduce$arity$3$ @ app.js?mtime=1545734833000:4523
$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$03$$ @ app.js?mtime=1545734833000:3951
(anonymous) @ app.js?mtime=1545734833000:10167
$cljs$core$array_reduce$cljs$0core$0IFn$0_invoke$0arity$04$$ @ app.js?mtime=1545734833000:2864
$JSCompiler_prototypeAlias$$.$cljs$core$IReduce$_reduce$arity$2$ @ app.js?mtime=1545734833000:3016
$cljs$core$reduce$cljs$0core$0IFn$0_invoke$0arity$02$$ @ app.js?mtime=1545734833000:3947
$cljs$core$merge_with$$.$cljs$core$IFn$_invoke$arity$variadic$ @ app.js?mtime=1545734833000:10165
(anonymous) @ app.js?mtime=1545734833000:17692
$secretary$core$route_matches$$ @ app.js?mtime=1545734833000:17509
(anonymous) @ app.js?mtime=1545734833000:17716
$cljs$core$some$$ @ app.js?mtime=1545734833000:5440
$secretary$core$locate_route$$ @ app.js?mtime=1545734833000:17713
$secretary$core$dispatch_BANG_$$ @ app.js?mtime=1545734833000:17726
$app$routes$on_goog_navigate$$ @ app.js?mtime=1545734833000:17977
$JSCompiler_StaticMethods_fireListeners$$ @ app.js?mtime=1545734833000:17459
$goog$events$EventTarget$$.dispatchEvent @ app.js?mtime=1545734833000:17440
$app$routes$on_window_click$$ @ app.js?mtime=1545734833000:17970
sorry, updated
hmm. so the only thing I can think of thats actually different between the systems is the cache
sure! maybe .m2 as well for a good company?
haven’t tried on ubuntu server, will do in few mins
macOS compile
and release
always produced healthy bundles
Ahem. Dear sir, please accept my resignation as I didn’t had a yarn.lock
file in the repo index.
Fixed it all.
Found it when I tried to reproduce compile
on the remote host.
Thank you for guidance and responsiveness! ❤️❤️🍺🍺
I guess cljs might take some decisions based on env
or even different cljs versions?
is there a way to dump npm dep-tree used in compilation? If we’re interested
build reports contain everything that went into the build but besides that there are only the common npm tools
any chance to send you a beer over Patreon or smth?