Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for CommonJS #5373

Open
Rmannn opened this issue Sep 20, 2024 · 2 comments
Open

Support for CommonJS #5373

Rmannn opened this issue Sep 20, 2024 · 2 comments

Comments

@Rmannn
Copy link

Rmannn commented Sep 20, 2024

Hi,

We are currently using GoodData Cloud, and we've encountered an issue with the @gooddata/sdk-backend-tiger package, which is only available as an ESM export.

Unfortunately, we cannot use it in our backend codebase since we are working with TypeScript and CommonJS. Handling dynamic imports has proven to be very difficult, and migrating to ESM is not an option for us at this time.

Our current setup involves a custom generator and OpenAPI definition to generate the REST API SDK, but we'd like to leverage parts of the Tiger backend, specifically the AFM execution convertors, to enable custom AFM execution.

Do you have any plans to support CommonJS? It remains a widely used default module system for Node.js.
Thank you.

@pbenes
Copy link
Contributor

pbenes commented Sep 24, 2024

Hi, the esm-only approach was done in #3802. There are currently no plans to support CommonJS.

@Rmannn
Copy link
Author

Rmannn commented Sep 24, 2024

Hi, thank you for your answer, however thinking esm only is a really bad approach for a versatile library. We are paid customers and this is disappointing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants