QwikDev / qwik

Instant-loading web apps, without effort
https://qwik.dev
MIT License
20.71k stars 1.29k forks source link

[🐞] Internal assert, this is likely caused by a bug in Qwik: If qSerialize is true then fnStr must be provided. #6696

Closed harshmangalam closed 2 months ago

harshmangalam commented 2 months ago

Which component is affected?

Qwik Runtime

Describe the bug

When i try to reload the /search page using simple Form component i am getting error

QWIK ERROR Internal assert, this is likely caused by a bug in Qwik: If qSerialize is true then fnStr must be provided. Error: Internal assert, this is likely caused by a bug in Qwik: If qSerialize is true then fnStr must be provided.

Reproduction

https://github.com/harshmangalam/threads.qwik/tree/harsh/turso

Steps to reproduce

Reload the /search page

System Info

System:
    OS: macOS 14.5
    CPU: (8) arm64 Apple M1
    Memory: 81.13 MB / 8.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.13.1 - ~/.nvm/versions/node/v20.13.1/bin/node
    npm: 10.5.2 - ~/.nvm/versions/node/v20.13.1/bin/npm
    pnpm: 8.12.1 - ~/Library/pnpm/pnpm
    bun: 1.1.0 - /opt/homebrew/bin/bun
    Watchman: 2024.01.22.00 - /opt/homebrew/bin/watchman
  Browsers:
    Chrome: 126.0.6478.127
    Safari: 17.5

Additional Information

If switching route to /search working fine but when reloading /search creating issues.

wmertens commented 2 months ago

Please try 1.7.1 first. Does this happen in dev or prod?

harshmangalam commented 2 months ago

Tried with 1.7.1 having the same issues in dev working fine in prod.

wmertens commented 2 months ago

Can you make a minimal repro? Prisma isn't relevant right? Wout.

On Wed, 17 Jul 2024, 20:57 Harsh Mangalam, @.***> wrote:

Tried with 1.7.1 having the same issues in dev working fine in prod.

— Reply to this email directly, view it on GitHub https://github.com/QwikDev/qwik/issues/6696#issuecomment-2234030736, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAANNFRLHLQLCG4UCJCOHBTZM25CFAVCNFSM6AAAAABK75X7X2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEMZUGAZTANZTGY . You are receiving this because you commented.Message ID: @.***>

wmertens commented 2 months ago

nevermind, @thejackshelton made a small repro. Will look at it tomorrow. It's something to do with the optimizer thinking it's building for the client when it's building for the server. https://github.com/thejackshelton/debug-comp-lib/blob/main/src/components/counter/counter.tsx

njoguamos commented 1 month ago

For anyone experiencing this problem, try upgrading Qwik to ^1.7.3