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

[🐞] V2 - Cannot serialize function #7157

Open
devcaeg opened this issue Dec 13, 2024 · 2 comments
Open

[🐞] V2 - Cannot serialize function #7157

devcaeg opened this issue Dec 13, 2024 · 2 comments
Labels

Comments

@devcaeg
Copy link

devcaeg commented Dec 13, 2024

Which component is affected?

Qwik Runtime

Describe the bug

In a custom component “Link”, I am passing an “href” which is a function that returns a text, but in v2 of Qwik, it throws a warning, in v1 it works without warning.

It is a normal function (not wrapped by $), and does not return a promise.

Reproduction

https://stackblitz.com/edit/github-6f6maw-7gwyfmh8?file=src%2Froutes%2Findex.tsx

Steps to reproduce

No response

System Info

npmPackages:
    @qwik.dev/core: 2.0.0-alpha.2
    @qwik.dev/router: 2.0.0-alpha.2
    typescript: 5.7.2
    undici: 7.0.0 
    vite: 6.0.1

Additional Information

No response

@devcaeg devcaeg added STATUS-1: needs triage New issue which needs to be triaged TYPE: bug Something isn't working labels Dec 13, 2024
@Varixo Varixo added VERSION: upcoming major and removed STATUS-1: needs triage New issue which needs to be triaged labels Dec 13, 2024
@Varixo
Copy link
Member

Varixo commented Dec 13, 2024

Probably before stable release we should remove that warning

@devcaeg
Copy link
Author

devcaeg commented Dec 13, 2024

Doing more tests, I can verify that it is not only a warning, but it generates an error at run time.

Since Qwik tries to call the function, but does not find it.

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

No branches or pull requests

2 participants