-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Module "preact/compat" has no exported member ElementRef #4481
Copy link
Copy link
Closed
Labels
Description
- Check if updating to the latest Preact version resolves the issue
Describe the bug
The ElementRef type is not available yet
To Reproduce
Check this Stackblitz demo where i'm importing the ElementRef from preact. In the same line render is also imported. If you hover over render you'll see the type definition of it. But that's not the case for ElementRef. It doesn't show any type definition (idk why Stackblitz isn't showing any error there. but vscode does)
Steps to reproduce the behavior:
- Run
npm init preact elementRefDemo - Check
Typescriptwhen asked - Try importing
ElementRefinsrc/index.tsfrompreactorpreact/compact
Expected behavior
ElementRef should be available in preact or preact/compact
Reactions are currently unavailable