-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
TypeScript build fails #87
Comments
I have similar issues:
Maybe those typings should be a hard dependency for |
The problem with |
This is not a solution, but I think if you import individual hooks like import myHook from 'react-use/lib/myHook'; it should work, or doesn't it? |
Yes this does work, but isn‘t very nice to use
… Am 31.01.2019 um 15:53 schrieb Va Da ***@***.***>:
This is not a solution, but I think if you import individual hooks like
import myHook from 'react-use/lib/myHook';
it should work, or doesn't it?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
Well I'm using that approach, and that's why I haven't seen this TypeScript error and haven't had incentive to fix it, sorry for that 😃 |
But using this, you won‘t get automatic imports in VSCode ;)
… Am 31.01.2019 um 16:05 schrieb Va Da ***@***.***>:
Well I'm using that approach, and that's why I haven't seen this TypeScript error and haven't had incentive to fix it, sorry for that 😃
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
|
Yes — |
@streamich maybe we should exclude |
@dcporter do see errors caused by |
It's looking very hopeful. I'll close this out once my local project's PR makes it all the way through the pipeline without mishap. Thanks! :D |
Looks good now, I'm able to import hooks from root! This presented as a binary "everything works or everything is broken" situation, so I'm confident that everything is in a stable place now. Thanks a ton. (I realized that this is not my issue so I can't close it. But @j-f1 can!) |
I’ve enabled the
strict
option in mytsconfig.json
, and installing this package results in an error because it can’t find types for theuseCallbag
hook, even though I don’t use that hook. It seems to be trying to import the types for theuse-callbag
package, which don’t exist. Can you fix this error?The text was updated successfully, but these errors were encountered: