Closed shiv19 closed 3 years ago
algolia-index.android.ts
file did not have an export for Completion Handler.
I added
export const CompletionHandler;
to this file.
And I changed the way it is exported to
export const CompletionHandler = com.algolia.search.saas.CompletionHandler.extend({
init() {
return global.__native(this);
},
requestCompleted(content, error) {
if (error) {
return this.handler(null, error);
}
return this.handler(JSON.parse(content.toString()));
}
});
That fixed it for me.
I've been getting this warning during webpack builds.
I'm using Webpack 5 with NativeScript 8
On the findRecipes page, I'm just importing it like this