arifulhb / amazon-pa-api50

Amazon Product Advertising API v5.0 for JavaScript and NodeJs
https://www.npmjs.com/package/amazon-pa-api50
MIT License
29 stars 9 forks source link

Module not found: Can't resolve 'ApiClient' #25

Open marco910 opened 2 years ago

marco910 commented 2 years ago

I'm getting the following issue using Node v16.14.2 on Ubuntu 20.04. I didn't change anything to the code, that happened right away.

Any ideas?

Module not found: Can't resolve 'ApiClient' in '/%project_root%/node_modules/amazon-pa-api50/sdk/src'
Did you mean './ApiClient'?
Requests that should resolve in the current directory need to start with './'.
Requests that start with a name are treated as module requests and resolve within module directories (node_modules).
If changing the source code is not an option there is also a resolve options called 'preferRelative' which tries to resolve these kind of requests in the current directory too.