-
Notifications
You must be signed in to change notification settings - Fork 2
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
Package is bundled incorrectly causing issues with types / ESM. #5
Comments
@mattf96s Thanks for the issue! Couple questions. Why are you importing it from import { useWorkerFunc } from 'use-react-workers` You would be getting the correct types. The |
Issue was autoclosed with merging of possible fix. Reopening until everything can be confirmed. |
🎉 This issue has been resolved in version 1.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
No it has not:
|
@rafark This comment is less than helpful. Are you able to provide a bit more info about your situation/project? According to the arethetypeswrong link (as well as my testing) they are passing. |
The package is bundled incorrectly which causes an ESM error with the default import or type errors when importing with
import { useWorkerFunc } from 'use-react-workers/dist/index.mjs'
.To Reproduce
Visit arethetypeswrong.
Expected behavior
The package is usable within an ESM project without type errors.
The text was updated successfully, but these errors were encountered: