I’m trying to add items to an amazon shopping cart, which I am supposed to be able to create, but I keep getting errors saying that “Exception while invoking method ‘addToAmazonCart’ TypeError: Object [object Object] has no method ‘cartCreate’”.
Can you show the code you’re using that makes the cartCreate function call? The exception you’ve listed points to that function being called on an object that doesn’t have that function, so that’s definitely the first place to start debugging from.
The amazon-product-api package doesn’t support cartCreate functionality, so calling client.cartCreate won’t work. The only supported functions are itemSearch, itemLookup, and browseNodeLookup (source is here).