You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
./node_modules/usehooks-ts/dist/esm/useEventListener/useEventListener.js 10:34
[1] Module parse failed: Unexpected token (10:34)
[1] File was processed with these loaders:
[1] * ./node_modules/react-scripts/node_modules/babel-loader/lib/index.js
[1] You may need an additional loader to handle the result of these loaders.
[1] | }, [handler]);
[1] | useEffect(() => {
[1] > const targetElement = element?.current || window;
[1] |
[1] | if (!(targetElement && targetElement.addEventListener)) {
The text was updated successfully, but these errors were encountered:
Hi @Johannes5, thanks for reporting the bug! I think it is related to #97, so you can use usehooks-ts@2.2.1, or you also can try our test v3 test-usehooks-ts where we have fixed this problem.
I had this on the latest version:
The text was updated successfully, but these errors were encountered: