Closed DanielRuf closed 2 years ago
Trying some workarounds. Closing until I can provide a simple reproducible test case.
Resolved, we had to use import instead of require. Maybe you want to extend the documentation with import * as sdk from '@ionos-cloud/sdk-nodejs';
for ES6 projects.
Hello! Thank you for bringing this up! We'll do some tests on ES6 projects too and update the documentation where needed.
Description
I have wondered why DataCentersApi.datacentersGet() did nothing and returns nothing.
dcApi.datacentersGet().then((response: any, error: any) => log.debug(error));
SDK version:
How to Reproduce
Error and Debug Output