Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unhandled Runtime Error #9611

Open
Adamacouly opened this issue Mar 7, 2025 · 1 comment
Open

Unhandled Runtime Error #9611

Adamacouly opened this issue Mar 7, 2025 · 1 comment

Comments

@Adamacouly
Copy link

Description

Hi I have the following issue: Unhandled Runtime Error

The 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.

  • Bit version:
  • Node version: next js last version
  • yarn version:
  • Platform:
  • Bit compiler (include version):
  • Bit tester (include version):

import styles from "./styles.module.scss";
import { menuArray } from "../../../data/home";
import Link from "next/link";
//-------
import {
GiLargeDress,
GiClothes,
Gi3DHammer,
GiWatch,
GiBallerinaShoes,
GiHeadphones,
GiHealthCapsule,
GiSportMedal,
GiBigDiamondRing,
} from "react-icons/gi";
import { MdOutlineSportsEsports, MdOutlineSmartToy } from "react-icons/md";
import { BiCameraMovie, BiGift, BiCategory } from "react-icons/bi";
import { FaBaby } from "react-icons/fa";
import { HiOutlineHome } from "react-icons/hi";
import { AiOutlineSecurityScan } from "react-icons/ai";
import { BsPhoneVibrate } from "react-icons/bs";
//-------
export default function Menu() {
return (






  • Categories



  • {menuArray.map((item, i) => (



  • {i == 0 ? (

    ) : i == 1 ? (

    ) : i == 2 ? (

    ) : i == 3 ? (

    ) : i == 4 ? (

    ) : i == 5 ? (

    ) : i == 6 ? (

    ) : i == 7 ? (

    ) : i == 8 ? (

    ) : i == 9 ? (

    ) : i == 10 ? (

    ) : i == 11 ? (

    ) : i == 12 ? (

    ) : i == 13 ? (

    ) : i == 14 ? (

    ) : i == 15 ? (

    ) : i == 16 ? (

    ) : (
    ""
    )}
    {item.name}



  • ))}



);
}

@GiladShoham
Copy link
Member

What is your bit env for this component?

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

No branches or pull requests

2 participants