I want to use facade Algoliasearch in my scalajs app, I imported it through sbt and but on UI I see $g.algoliasearch is not a function. I assume this is because of missing javascript libraries. I have included Algoliaseach-client-javascript dependencies in my package.json and yarn installed it.
Now I'm not sure when I use facade how I provide/link those dependencies. If someone could provide some example code that would be helpful
I am talking about any one of these facades https://github.com/DefinitelyScala/scala-js-algoliasearch
I have added jsDependencies like this
jsDependencies ++= Seq( "org.webjars.bower" % "github-com-algolia-algoliasearch-client-javascript" % "3.18.1" / "3.18.1/reactnative.js" ) I was hoping that above will declare something like this in my scalajs.output.ios file var Algoliasearch = require(...) but I do not see any entry like thisand I'm still not sure how to import it to avoid following error:
$g.algoliasearch is not a function
Any help what I'm missing here please?