Fork me on GitHub
#cljsrn
<
2019-06-21
>
thheller11:06:38

@chrisjswanson most likely using the wrong require. all that message means is that SendBird is not defined. probably need (:require ["sendbird" :default SendBird]) then later (SendBird. ...)

Chris Swanson11:06:04

hm let me double check

Chris Swanson11:06:30

Is this way different ?

(:require
  ["sendbird" as sendbird])
(sendbird/SendBird.  ....)

thheller11:06:30

yes :as is incorrect in this case. see the translation table here https://shadow-cljs.github.io/docs/UsersGuide.html#_using_npm_packages

thheller11:06:23

well you can use :as but then its (sendbird/default. ...)

Chris Swanson11:06:50

interesting.. thanks, that is super helpful

Chris Swanson11:06:14

yes translation table showed me the correct way

Chris Swanson11:06:30

now it works; thanks again!