Comments (5)
Hi @adhamaa, thanks for reporting this. We are working on it and the fix will be in the next release. For now, I would recommend you to roll back to [email protected]
.
from usehooks-ts.
Hi @adhamaa, thanks for reporting this. We are working on it and the fix will be in the next release. For now, I would recommend you to roll back to
[email protected]
.
Thank you for answering this with a specific version to rollback to.
from usehooks-ts.
@juliencrn Has this been addressed in the latest release?
from usehooks-ts.
@DCG-Erik still not.
There are two options:
- You are in an ESM environnement, you can upgrade to the latest version
- You are in CommonJS, you must pin
useHooks-ts
to2.2.1
from usehooks-ts.
I have the same error log in Sentry. I'm using usehooks-ts 2.5.1
.
Environment: Nextjs 12.1.5
.
SyntaxError
Unexpected token
At => /node_modules/usehooks-ts/dist/esm/useEventListener/useEventListener.js at line 9:31
const targetElement = element?.current || window;
from usehooks-ts.
Related Issues (20)
- [BUG] useScrollLock - Do not leave inline styles if they weren't present before the lock HOT 2
- [BUG] useWindowSize does not trigger on orientation change
- [BUG]
- Add support for "focusin" for `useOnClickOutside` hook HOT 1
- Examples first, then API docs HOT 2
- useScrollLock doesn't work as intended [BUG]
- [BUG] useEventListener can be used with SVGElement, but rejected by type-check
- [BUG] useLocalStorage's setValue should be callable in render phase (like a normal `useState`) HOT 6
- [BUG] - useOnClickOutside cannot be trigged during capture phase HOT 1
- [BUG] TernaryDarkMode type is no longer exported
- #574
- Where can I find the changelog? HOT 1
- [BUG] If using useInterval with setState, and setState returns the same value, memory leaks HOT 2
- Suggest note to prefer useWindowSize over useScreen in docs
- Suggest update some script in 'CONTRIBUTING.md' HOT 1
- [BUG] Compatibility with React v19 HOT 3
- [BUG] Incorrect dist on npm for [email protected]
- [BUG] `useMediaQuery` doesn't load currently on the server without `initializeWithValue: false` HOT 1
- [BUG] useIntersectionObserver loses ref node access since v3
- Incorrect documented default for debounce trailing option
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from usehooks-ts.