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

Attempted import error: 'useWorker' is not exported from '@koale/useworker'. #86

Open
konraddzbik opened this issue Sep 16, 2020 · 4 comments

Comments

@konraddzbik
Copy link

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'.
@zant
Copy link
Collaborator

zant commented Sep 27, 2020

Hi @KonradCshark, can you share a bit more about your project setup? Normally, it should just work, here's a codesandbox example:

https://codesandbox.io/s/funny-feather-x930r

@konraddzbik
Copy link
Author

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.

@zant
Copy link
Collaborator

zant commented Sep 28, 2020

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

@mudassir-copperpod
Copy link

any update on the fix? facing the same issue with typescript in react.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants