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

Wrong typings for ESM module #65

Open
raviqqe opened this issue Aug 9, 2024 · 0 comments
Open

Wrong typings for ESM module #65

raviqqe opened this issue Aug 9, 2024 · 0 comments
Labels

Comments

@raviqqe
Copy link

raviqqe commented Aug 9, 2024

Problem

TypeScript with ESM modules fails to compile a program importing this @mapbox/mapbox-gl-language package.

import language from "@mapbox/mapbox-gl-language";

// This `default` property is `undefined`.
console.log(language.default);
// This `language` default export is the actual constructor. But this leads to a compile error.
const control = new language();

References

@raviqqe raviqqe added the bug label Aug 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant