[🐞] Build fails to find Qwik components when using `deno.jsonc`
Open
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 287
- Forks
- 24
- Avg merge
- 14h 44m
- Merged PRs (30d)
- 3
Description
Which component is affected?
Build process
Describe the bug
The build process fails to locate Qwik components when package.json is replaced by deno.jsonc.
Reproduction
https://github.com/quadratz/qwik-astro-issue-268-
Steps to reproduce
- Make sure you have Deno installed
- Clone this repository: https://github.com/quadratz/qwik-astro-issue-268-. (Notice that
package.jsonhas been replaced bydeno.jsonc) - Run
deno task build - Check the logs. You'll see
could not read /package.json ...and a warning that the Qwik core bundle wasn't found.
System Info
Dependencies:
@qwik.dev/astro 1.0.1
@qwik.dev/core 2.0.0-beta.32
astro 6.1.9
Binaries:
Deno: 2.7.13 - /usr/bin/deno
Additional Information
Here is the full log:
❯ deno task build
╭ Warning
│
│ The following packages are deprecated:
│ npm:astro-integration-kit@0.20.0 (Check the migration guide: https://astro-integration-kit.netlify.app/migration-guide/)
╰─
Task build astro build
could not read /package.json to determine package name, ignoring. (Error: ENOENT: no such file or directory, open '/package.json')
could not read /package.json to determine package name, ignoring. (Error: ENOENT: no such file or directory, open '/package.json')
15:49:19 [types] Generated 425ms
15:49:19 [build] output: "static"
15:49:19 [build] mode: "static"
15:49:19 [build] directory: /home/qz/qwik-astro/dist/
15:49:19 [build] Collecting build info...
15:49:19 [build] ✓ Completed in 450ms.
15:49:19 [build] Building static entrypoints...
could not read /package.json to determine package name, ignoring. (Error: ENOENT: no such file or directory, open '/package.json')
could not read /package.json to determine package name, ignoring. (Error: ENOENT: no such file or directory, open '/package.json')
could not read /package.json to determine package name, ignoring. (Error: ENOENT: no such file or directory, open '/package.json')
could not read /package.json to determine package name, ignoring. (Error: ENOENT: no such file or directory, open '/package.json')
could not read /package.json to determine package name, ignoring. (Error: ENOENT: no such file or directory, open '/package.json')
could not read /package.json to determine package name, ignoring. (Error: ENOENT: no such file or directory, open '/package.json')
could not read /package.json to determine package name, ignoring. (Error: ENOENT: no such file or directory, open '/package.json')
could not read /package.json to determine package name, ignoring. (Error: ENOENT: no such file or directory, open '/package.json')
could not read /package.json to determine package name, ignoring. (Error: ENOENT: no such file or directory, open '/package.json')
could not read /package.json to determine package name, ignoring. (Error: ENOENT: no such file or directory, open '/package.json')
could not read /package.json to determine package name, ignoring. (Error: ENOENT: no such file or directory, open '/package.json')
vite v7.3.2 building client environment for production...
transforming (1) node_modules/.deno/@qwik.dev+core@2.0.0-beta.32/node_modules/@qwik.dev/core/dist/qwikloader.jscould not read /package.json to determine package name, ignoring. (Error: ENOENT: no such file or directory, open '/package.json')
✓ 10 modules transformed.
dist/assets/DAqJGcDa-bundle-graph.json 0.12 kB │ gzip: 0.11 kB
dist/q-manifest.json 5.22 kB │ gzip: 1.09 kB
dist/build/q-BZhLE-zh.js 0.12 kB │ gzip: 0.13 kB
dist/build/q-Da_LcBLB.js 0.14 kB │ gzip: 0.13 kB
dist/build/q-D13KNE5L.js 0.18 kB │ gzip: 0.16 kB
dist/build/q-wP5gUVA0.js 0.18 kB │ gzip: 0.16 kB
dist/build/q-BOUrot2i.js 4.75 kB │ gzip: 2.41 kB
dist/build/q-D4zlRG7M.js 4.93 kB │ gzip: 2.32 kB
dist/build/q-CMNqrrBz.js 96.34 kB │ gzip: 36.72 kB
✓ built in 2.68s
15:49:26 [vite] ✓ built in 3.85s
Qwik core bundle not found, is Qwik actually used in this project?
15:49:26 [vite] ✓ built in 16ms
15:49:26 [build] Rearranging server assets...
generating static routes
15:49:26 ├─ /index.html (+27ms)
15:49:26 ✓ Completed in 146ms.
15:49:26 [build] ✓ Completed in 7.32s.
15:49:26 [build] 1 page(s) built in 7.77s
15:49:26 [build] Complete!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure using the linked repository and deno task build, then inspect how the build process reads package.json when only deno.jsonc exists. Done means the build locates the Qwik components and no longer reports repeated /package.json errors or a missing Qwik core bundle.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- deno, typescript
- Domain
- build-system
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100