Attempted import error: 'useWorker' is not exported from '@koale/useworker'.
konraddzbik opened this issue · 5 comments
There is a problem when we did try to use useWorker inside our react + TypeScript + webpack.
Does anyone have a similar problem? Maybe some additional configuration is required, but I cant figure o
ut.
Attempted import error: 'useWorker' is not exported from '@koale/useworker'.
Hi @KonradCshark, can you share a bit more about your project setup? Normally, it should just work, here's a codesandbox example:
Sure, but I'm really new in bug/error reporting, what should I share to complete the issue description?
package.json or tsconfig? Maybe i did something wrong inside the project configuration?
I did try to use worker-loader and everything works fine- but not the way that is easy to read.
Np! both will be okay, as it will be useful to see which version of useWorker
you have installed. It may also be something related to where TS is looking for type definitions
any update on the fix? facing the same issue with typescript in react.
Hey @konraddzbik,
I'll be closing this issue as it seems to be resolved in the latest versions.
If you want me to re-open this issue or need any assistance, feel free to ping me.