-
Notifications
You must be signed in to change notification settings - Fork 92
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
Can't use useCookieValue
since v24
#1516
Comments
This is happening to me as well! |
Documentation page is currently broken, thus havent been updated, it is true. I dont know whats the matter with stackblitz and why it complains about non-existent issue with typescript. Moreover stackblitz despite having import underlined perfectly compiles everything🤔 https://stackblitz.com/edit/stackblitz-starters-lfd8ma?file=src%2FApp.tsx |
I've confirmed my project compiles by using the import path examples mentioned in the v24.0.0 release notes, e.g. import { useCookieValue } from "@react-hookz/web/useCookieValue";
import { useResizeObserver } from "@react-hookz/web/useResizeObserver";
import { useIntersectionObserver } from "@react-hookz/web/useIntersectionObserver";
import { useUnmountEffect } from "@react-hookz/web/useUnmountEffect";
import { useTimeoutEffect } from "@react-hookz/web/useTimeoutEffect"; (I'm specifying individual directories since my project uses Next.js, and it has unusual tree-shaking conventions which I do not wish to use right now) However, I still get TypeScript errors like So this might not be an issue with |
Since typescript handles everything fine, but IDE not - i suspect that stackblitz (and codesandbox, as figures) has different, older version of typescript used for IDE purposes (same as vscode has own internal version of typescript used for language server purposes). Presumably it worth of creating bugreport there (stackblitz/codesandbox)🤔 |
My guesses seems to be correct: stackblitz/core#2944 |
I've created 2 repositories, which both result in dev-server/build errors. Fork of the StackBlitz demo above, with updated TypeScript dependenciesrunning
|
Prior Issues
Are there any existing issues or PRs that relate to this problem? If so, link them here.
What is the current behavior?
What does
@react-hookz/web
do right now.useCookieValue
Steps to Reproduce
If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem via https://codesandbox.io or similar.
import { useCookieValue } from "@react-hookz/web"
Demo
What is the expected behavior?
What should
@react-hookz/web
be doing?useCookieValue
is working, or docs are updated to show the correct import pathEnvironment Details
@react-hookz/web
version: 24.0.4react
version: 18.2.0react-dom
version: 18.2.0typescript
version:StackBlitz
->react-scripts
?StackBlitz
StackBlitz
The text was updated successfully, but these errors were encountered: