@tyclintw I've switched this to use the NPM package and add package.json. I'm having problems getting the code to run. Who can help debug the NPM package issues below?
I think something is wrong with the NPM package.
Problem 1:
I can't create the model RankRequest. It appears to be exported from mappers instead of models. In this file, I created a JSON object without the model just to try to get it past that issue.
Problem 2:
The await personalizerClient.rank(rankRequest) call at line 55 is supposed to require 1 param and return promise but it is acting like I'm using a callback signature instead. This could be because I'm not using a model or it could be something else.
@tyclintw I've switched this to use the NPM package and add package.json. I'm having problems getting the code to run. Who can help debug the NPM package issues below?
I think something is wrong with the NPM package.
Problem 1: I can't create the model RankRequest. It appears to be exported from mappers instead of models. In this file, I created a JSON object without the model just to try to get it past that issue.
Problem 2: The
await personalizerClient.rank(rankRequest)
call at line 55 is supposed to require 1 param and return promise but it is acting like I'm using a callback signature instead. This could be because I'm not using a model or it could be something else.SDK source file