oktaysenkan / react-native-iconify

Iconify for React Native
MIT License
231 stars 9 forks source link

`Element type is invalid: expected ... but got: undefined` #8

Closed MAXOUXAX closed 8 months ago

MAXOUXAX commented 8 months ago

Hi, I just installed this library on a fresh Expo 50 project using the Metro Bundler for web, and when trying to use the Iconify component, I get this error:

Uncaught Error
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.

Check the render method of `Iconify`.

Environment

Node: v20.10.0 Expo: v50.0.2 react-native-iconify: v0.2.11 Web bundler: Metro

Reproduction

Here's a minimal reproduction GitHub repository

oktaysenkan commented 8 months ago

Thanks for the contribution. I have never tested it on the web. I will fix this soon.

oktaysenkan commented 8 months ago

CleanShot 2024-01-25 at 22 25 42@2x

react-native-web support is added on v1.0.0 🥳🎉