Closed mikeboiko closed 1 year ago
Try adding some logging to see what's getting returned / if login is working.
Hi, for some reason my reply a week ago didn't save, so let me post it again. I added the following logging:
any.login().then(async () => {
await any.getLists();
// Add new item to the Walmart list
const walmart = any.getListByName('Task');
console.log(walmart);
let chips = any.createItem({name: 'Chips'});
console.log(chips);
chips = await walmart.addItem(chips)
console.log(chips);
await chips.save();
any.teardown();
});
I'm still not seeing any stdout when I run node script.js
I'm not super familiar with node though. Should I be logging in a different way/place?
Thanks!
You should be seeing something with that--not sure what else could be the issue, sorry.
Ok thanks for confirming. Which version of node are you using?
I just downgraded node to v12.22.12 and everything worked great! Feel free to close this issue and make a fix for node 18 later.
Hi, I tried to run the following code but nothing happened nor did I get any stdout/stderr:
I installed the
anylist
package and ran this in my terminal on Linux:Could you please let me know if I need to do anything differently?