Skip to content

useInterval: Cannot assign to import "useEffectEvent" using VITE #343

Description

@letyassine

X [ERROR] Cannot assign to import "useEffectEvent"

node_modules/@uidotdev/usehooks/index.js:3:6:
  3 │ React.useEffectEvent = React.experimental_useEffectEvent;
    ╵       ~~~~~~~~~~~~~~

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions