key :spec not found in: %Kino.JS.Live{
dustinfarris opened this issue · 3 comments
dustinfarris commented
Trying to use this with the latest version of livebook and getting this when calling add_table_source
** (KeyError) key :spec not found in: %Kino.JS.Live{module: Kino.MapLibre, pid: #PID<0.472.0>, ref: "f7dhzy2xuwdd7cmsa3k2awwr2xusogkq"}
(maplibre 0.1.4) lib/maplibre.ex:740: MapLibre.put_source/2
/Users/pepsi/sdna-maps.livemd#cell:fqhslc7ub3nv6ntiilb2ilzzch3f7jbi:5: (file)
jonatanklosko commented
Hey @dustinfarris, it seems you're calling add_table_source
with a kino object, not the MapLibre
struct?
dustinfarris commented
You're right, user error. 😭
Thanks for the quick response though!
josevalim commented
@dustinfarris can you please send a PR that pattern matches on the right struct in MapLibre? That will make it fail earlier (and clearer!).