Skip to content

[🐞] v2: Deserialization breaks in unexpected areas when using import meta glob #7789

@thejackshelton

Description

@thejackshelton

Which component is affected?

Qwik Runtime

Describe the bug

When using import meta glob, along with conditional rendering and other normal JSX behavior it causes obscure bugs from Qwik that would work when not using import meta glob.

Reproduction

https://github.com/thejackshelton/v2-meta-glob-repro

Steps to reproduce

Reproduction steps:

  1. Run pnpm install
  2. Run pnpm dev
  3. Navigate to http://localhost:5173/
  4. Click the "Subscribe" button
  5. See the error in the console, in either dev or preview mode

Expected behavior

The error should not be thrown.

Actual behavior

core.prod.mjs?v=163af181:510 Uncaught (in promise) TypeError: Cannot read properties of null (reading 'apply')

System Info

System:
    OS: macOS 15.5
    CPU: (16) arm64 Apple M4 Max
    Memory: 1.07 GB / 48.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.14.0 - ~/.nvm/versions/node/v22.14.0/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 10.9.2 - ~/.nvm/versions/node/v22.14.0/bin/npm
    pnpm: 10.14.0 - ~/.nvm/versions/node/v22.14.0/bin/pnpm
    bun: 1.1.7 - ~/.bun/bin/bun
  Browsers:
    Brave Browser: 135.1.77.95
    Chrome: 138.0.7204.185
    Safari: 18.5
  npmPackages:
    typescript: 5.4.5 => 5.4.5 
    undici: * => 7.13.0 
    vite: ^7 => 7.0.6

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions