Skip to content

[🐞] Build fails to find Qwik components when using deno.jsonc #287

@quadratz

Description

@quadratz

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

  1. Make sure you have Deno installed
  2. Clone this repository: https://github.com/quadratz/qwik-astro-issue-268-. (Notice that package.json has been replaced by deno.jsonc)
  3. Run deno task build
  4. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions