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

[🐞] Tabs & Inline components: Only primitive and object literals can be serialized #899

Open
thejackshelton opened this issue Jul 22, 2024 · 0 comments
Labels
STATUS-1: needs triage This doesn't seem right TYPE: bug Something isn't working

Comments

@thejackshelton
Copy link
Collaborator

thejackshelton commented Jul 22, 2024

Which package is affected?

Headless Kit

Describe the bug

When putting items inside the tabs, we get an error from Qwik that only primitive and object literals can be serialized.

The reproduction below, is putting a simple icon in the tabs, and it breaks.

This is caused by the Icon being an inline component, if we wrap it in component$ it works fine.

Reproduction

https://github.com/thejackshelton/tabs-repro

Steps to reproduce

pnpm i
pnpm dev
open dev server

System Info

System:
    OS: macOS 14.5
    CPU: (8) arm64 Apple M3
    Memory: 196.84 MB / 16.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.12.2 - /usr/local/bin/node
    npm: 10.5.0 - /usr/local/bin/npm
    pnpm: 9.5.0 - /usr/local/bin/pnpm
    bun: 1.1.7 - ~/.bun/bin/bun
  Browsers:
    Brave Browser: 125.1.66.118
    Chrome: 126.0.6478.183
    Safari: 17.5
  npmPackages:
    @builder.io/qwik: ^1.7.1 => 1.7.1 
    @builder.io/qwik-city: ^1.7.1 => 1.7.1 
    @qwik-ui/headless: ^0.5.0 => 0.5.0 
    typescript: 5.4.5 => 5.4.5 
    undici: * => 6.19.4 
    vite: ^5.2.10 => 5.3.4

Additional Information

No response

@thejackshelton thejackshelton added TYPE: bug Something isn't working STATUS-1: needs triage This doesn't seem right labels Jul 22, 2024
@thejackshelton thejackshelton changed the title [🐞] Code(3): Only primitive and object literals can be serialized [🐞] Tabs & Inline components: Only primitive and object literals can be serialized Jul 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
STATUS-1: needs triage This doesn't seem right TYPE: bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant