[🐞] TypeError: Cannot convert undefined or null to object
harshmangalam opened this issue · 6 comments
harshmangalam commented
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
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
Kampouse commented
the above project run csr mode
https://codesandbox.io/p/devbox/stoppropagation-forked-3glc28?file=%2Fsrc%2Fapp.tsx%3A6%2C18&workspaceId=6fd46b95-93fc-43f6-881e-6ee0368299ab
component$ cause error?
inline component still work
JerryWu1234 commented
let me check it out
wmertens commented
Please repro in qwik 1.8.0
Kampouse commented
same code but on 1.8: https://codesandbox.io/p/devbox/stoppropagation-forked-3glc28