QwikDev/qwik

[🐞] TypeError: Cannot convert undefined or null to object

harshmangalam opened this issue · 6 comments

Which component is affected?

Qwik Runtime

Describe the bug

I was trying to init Qwik in codesandbox but pnpm run dev exit with error

error when starting dev server:
TypeError: Cannot convert undefined or null to object
    at Function.entries (<anonymous>)
    at Object.validateSource (file:///project/workspace/node_modules/.pnpm/@builder.io+qwik@1.5.4_undici@6.16.0/node_modules/@builder.io/qwik/optimizer.mjs:1944:41)
    at async Context.buildStart (file:///project/workspace/node_modules/.pnpm/@builder.io+qwik@1.5.4_undici@6.16.0/node_modules/@builder.io/qwik/optimizer.mjs:3513:7)
    at async Promise.all (index 2)
    at async hookParallel (file:///project/workspace/node_modules/.pnpm/vite@5.2.11/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:50688:9)
    at async Object.buildStart (file:///project/workspace/node_modules/.pnpm/vite@5.2.11/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:51040:13)
    at async file:///project/workspace/node_modules/.pnpm/vite@5.2.11/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:65087:13
    at async httpServer.listen (file:///project/workspace/node_modules/.pnpm/vite@5.2.11/node_modules/vite/dist/node/chunks/dep-cNe07EU9.js:65105:17)
 ELIFECYCLE  Command failed with exit code 1.

Reproduction

https://codesandbox.io/p/devbox/stoppropagation-qynknn?layout=%257B%2522sidebarPanel%2522%253A%2522EXPLORER%2522%252C%2522rootPanelGroup%2522%253A%257B%2522direction%2522%253A%2522horizontal%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522id%2522%253A%2522ROOT_LAYOUT%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522UNKNOWN%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522clzk3aliy00063b6idhf1qbzd%2522%252C%2522sizes%2522%253A%255B70%252C30%255D%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522EDITOR%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522EDITOR%2522%252C%2522id%2522%253A%2522clzk3alix00023b6igpbfi8cp%2522%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522direction%2522%253A%2522horizontal%2522%252C%2522id%2522%253A%2522SHELLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522SHELLS%2522%252C%2522id%2522%253A%2522clzk3alix00043b6iyfh11eez%2522%257D%255D%257D%255D%257D%252C%257B%2522type%2522%253A%2522PANEL_GROUP%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522direction%2522%253A%2522vertical%2522%252C%2522id%2522%253A%2522DEVTOOLS%2522%252C%2522panels%2522%253A%255B%257B%2522type%2522%253A%2522PANEL%2522%252C%2522contentType%2522%253A%2522DEVTOOLS%2522%252C%2522id%2522%253A%2522clzk3aliy00053b6iajdbp6d4%2522%257D%255D%257D%255D%252C%2522sizes%2522%253A%255B50%252C50%255D%257D%252C%2522tabbedPanels%2522%253A%257B%2522clzk3alix00023b6igpbfi8cp%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clzk3alix00013b6if0488uwg%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522FILE%2522%252C%2522filepath%2522%253A%2522%252FREADME.md%2522%257D%255D%252C%2522id%2522%253A%2522clzk3alix00023b6igpbfi8cp%2522%252C%2522activeTabId%2522%253A%2522clzk3alix00013b6if0488uwg%2522%257D%252C%2522clzk3aliy00053b6iajdbp6d4%2522%253A%257B%2522tabs%2522%253A%255B%255D%252C%2522id%2522%253A%2522clzk3aliy00053b6iajdbp6d4%2522%257D%252C%2522clzk3alix00043b6iyfh11eez%2522%253A%257B%2522tabs%2522%253A%255B%257B%2522id%2522%253A%2522clzk3alix00033b6is8n54jh4%2522%252C%2522mode%2522%253A%2522permanent%2522%252C%2522type%2522%253A%2522TASK_LOG%2522%252C%2522taskId%2522%253A%2522dev%2522%257D%255D%252C%2522id%2522%253A%2522clzk3alix00043b6iyfh11eez%2522%252C%2522activeTabId%2522%253A%2522clzk3alix00033b6is8n54jh4%2522%257D%257D%252C%2522showDevtools%2522%253Afalse%252C%2522showShells%2522%253Atrue%252C%2522showSidebar%2522%253Atrue%252C%2522sidebarPanelSize%2522%253A15%257D

Steps to reproduce

  • Open codesandbox https://codesandbox.io/
  • Create new project using Qwik (Vite) template
  • pnpm run dev is throwing error

System Info

System:
    OS: Linux 6.1 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
    CPU: (2) x64 AMD EPYC
    Memory: 1.99 GB / 4.01 GB
    Container: Yes
    Shell: Unknown
  Binaries:
    Node: 20.9.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.8.1 - /usr/local/bin/npm
    pnpm: 8.10.2 - /usr/local/share/npm-global/bin/pnpm
  npmPackages:
    @builder.io/qwik: ^1.5.1 => 1.5.4 
    typescript: ^5.2.2 => 5.4.5 
    vite: ^5.2.0 => 5.2.11

Additional Information

This is a codesandbox environment

let me check it out

Please repro in qwik 1.8.0