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
ERROR: Cannot assign to import "useEffectEvent" when importing useKeyPress hook #266
Comments
package.json
|
+1. Seeing this too in Vite/TS/React Followed these install instructions: https://usehooks.com/usekeypress |
+1 |
1 similar comment
+1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there, I'm currently getting the following error when compiling with Vite.js
This is when I tried to install the useKeyPress. It seems as read from the error message
Imports are immutable in JavaScript. To modify the value of this import, you must export a setter
function in the imported file (e.g. "setUseEffectEvent") and then import and call that function
here instead.
Which is coming from the index.js files in the
node_modules/@uidotdev/usehooks/index.js
However, no setter function was provided in the docs. Any idea how I can solve?
The text was updated successfully, but these errors were encountered: