-
Notifications
You must be signed in to change notification settings - Fork 64
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
Cannot import correctly under TypeScript Node 16 module resolution #136
Comments
Please check the latest version |
@alexcorvi thanks for your work! But I'm afraid it's still incorrect: ![]() import anchorme from 'anchorme'
console.log(anchorme) // This expression is not callable.
console.log(anchorme.list) // TypeScript error, but works with webpack
console.log(anchorme.default.list) // TypeScript no error, but crashes after webpack |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
🐛 Bug Report
Under TypeScript Node 16 module resolution (has
type: module
in thepackage.json
andmoduleResolution: Node16
intsconfig.json
), this package cannot be imported correctly.To Reproduce
Observed behavior
Cannot be imported.
Expected behavior
Imported correctly.
Environment
The text was updated successfully, but these errors were encountered: