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
JSX element type 'PhoneIcon' does not have any construct or call signatures.ts(2604)
'PhoneIcon' cannot be used as a JSX component.
Its type 'typeof import("[redacted]node_modules/@heroicons/react/24/solid/PhoneIcon")' is not a valid JSX element type.ts(2786)
import PhoneIcon
So how can an icon be imported with a default import?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Importing an icon as
causes TypeScript to scan all icon files (even if they don't end up in the bundle).
Importing an icon as
leads gives the error:
So how can an icon be imported with a default import?
Beta Was this translation helpful? Give feedback.
All reactions