Skip to content

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

Open
@letyassine

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.

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