Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[🐞] The "paths[1]" argument must be of type string. Received null #7396

Open
IanVS opened this issue Mar 4, 2025 · 0 comments
Open

[🐞] The "paths[1]" argument must be of type string. Received null #7396

IanVS opened this issue Mar 4, 2025 · 0 comments
Assignees
Labels
STATUS-1: needs triage New issue which needs to be triaged TYPE: bug Something isn't working

Comments

@IanVS
Copy link

IanVS commented Mar 4, 2025

Which component is affected?

Qwik Rollup / Vite plugin

Describe the bug

I created a new qwik project using npm create vite@latest, and chose the qwik typescript template.

I had to change the package.json to install vite 5 instead of 6 due to a peer dependency issue.

But then when I ran npm run build, I get the following error:

error during build:
[vite-plugin-qwik-post] The "paths[1]" argument must be of type string. Received null
TypeError [PLUGIN_ERROR]: The "paths[1]" argument must be of type string. Received null
    at Module.resolve (node:path:1186:7)
    at generateManifestFromBundles (file:///Users/ianvs/code/experiments/qwik-ts/node_modules/@builder.io/qwik/dist/optimizer.mjs:1671:26)
    at Object.generateManifest (file:///Users/ianvs/code/experiments/qwik-ts/node_modules/@builder.io/qwik/dist/optimizer.mjs:2402:24)
    at Object.handler (file:///Users/ianvs/code/experiments/qwik-ts/node_modules/@builder.io/qwik/dist/optimizer.mjs:6290:49)
    at file:///Users/ianvs/code/experiments/qwik-ts/node_modules/rollup/dist/es/shared/node-entry.js:21835:40
    at process.processTicksAndRejections (node:internal/process/task_queues:105:5)

Reproduction

https://github.com/IanVS/qwik-vite-plugin-bug-repro

Steps to reproduce

npm install npm run build

System Info

System:
    OS: macOS 15.3.1
    CPU: (12) arm64 Apple M2 Max
    Memory: 531.22 MB / 64.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 22.13.1 - ~/Library/Caches/fnm_multishells/5628_1741093141871/bin/node
    npm: 10.9.2 - ~/Library/Caches/fnm_multishells/5628_1741093141871/bin/npm
    pnpm: 9.15.0 - ~/Library/Caches/fnm_multishells/5628_1741093141871/bin/pnpm
  Browsers:
    Edge: 133.0.3065.92
    Safari: 18.3
  npmPackages:
    @builder.io/qwik: ^1.12.1 => 1.12.1
    typescript: ~5.7.2 => 5.7.3
    vite: ^5.0.0 => 5.4.14

Additional Information

This was previously opened as a bug in Vite, but closed: vitejs/vite#18023

@IanVS IanVS added STATUS-1: needs triage New issue which needs to be triaged TYPE: bug Something isn't working labels Mar 4, 2025
@JerryWu1234 JerryWu1234 self-assigned this Mar 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
STATUS-1: needs triage New issue which needs to be triaged TYPE: bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

2 participants