Skip to content

[Bug?]: Component is not defined #1933

@huseeiin

Description

@huseeiin

Duplicates

  • I have searched the existing issues

Latest version

  • I have tested the latest version

Current behavior 😯

ReferenceError: Component is not defined

Expected behavior 🤔

to see "hello"

Steps to reproduce 🕹

export function Component() {
  return <>hello</>;
}

export default function Home() {
  return <Component />;
}

it doesn't happen when Component is not exported

Context 🔦

{
  "dependencies": {
    "@solidjs/meta": "^0.29.4",
    "@solidjs/router": "^0.15.3",
    "@solidjs/start": "^1.1.7",
    "prettier": "^3.6.2",
    "solid-js": "^1.9.7",
    "typescript": "^5.9.2",
    "vinxi": "^0.5.8"
  }
}

Your environment 🌎

System:
    OS: Linux 6.8 Ubuntu 22.04.4 LTS 22.04.4 LTS (Jammy Jellyfish)
    CPU: (4) x64 Intel(R) Core(TM) i5-5200U CPU @ 2.20GHz
    Memory: 2.49 GB / 7.65 GB
    Container: Yes
    Shell: 5.1.16 - /bin/bash
  Binaries:
    Node: 22.18.0 - /run/user/1000/fnm_multishells/42251_1754403654478/bin/node
    Yarn: 1.22.22 - ~/.bun/bin/yarn
    npm: 10.9.3 - /run/user/1000/fnm_multishells/42251_1754403654478/bin/npm
    pnpm: 10.12.2 - ~/.bun/bin/pnpm
    bun: 1.2.19 - ~/.bun/bin/bun
  Managers:
    Apt: 2.4.11 - /usr/bin/apt
    Cargo: 1.86.0 - ~/.cargo/bin/cargo
    pip3: 22.0.2 - /usr/bin/pip3
  Utilities:
    CMake: 3.22.1 - /usr/bin/cmake
    Make: 4.3 - /usr/bin/make
    GCC: 11.4.0 - /usr/bin/gcc
    Git: 2.34.1 - /usr/bin/git
    Clang: 14.0.0 - /usr/bin/clang
    FFmpeg: 4.4.2 - /usr/bin/ffmpeg
    Curl: 7.81.0 - /usr/bin/curl
    OpenSSL: 3.0.2 - /usr/bin/openssl
  Virtualization:
    VirtualBox: 7.1.8 - /usr/bin/vboxmanage
  IDEs:
    Nano: 6.2 - /usr/bin/nano
    VSCode: 1.102.2 - /usr/bin/code
  Languages:
    Bash: 5.1.16 - /usr/bin/bash
    Java: 21.0.8 - /usr/bin/javac
    Perl: 5.34.0 - /usr/bin/perl
    Python3: 3.10.12 - /usr/bin/python3
    Rust: 1.86.0 - /home/hussein/.cargo/bin/rustc

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions