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

Not using a default export #305

Closed
Huguesmmm opened this issue Mar 15, 2023 · 1 comment
Closed

Not using a default export #305

Huguesmmm opened this issue Mar 15, 2023 · 1 comment

Comments

@Huguesmmm
Copy link

Huguesmmm commented Mar 15, 2023

There is a problem caused by exporting 'open' without using the 'default' keyword in the index.d.ts file.

The error when trying to import :

Module '".../node_modules/open/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flagts(1259)
index.d.ts(153, 1): This module is declared with 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag.
@sindresorhus
Copy link
Owner

Fixed in v9: https://github.com/sindresorhus/open/releases/tag/v9.0.0

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