vitejs / vite

Next generation frontend tooling. It's fast!
http://vite.dev
MIT License
68.75k stars 6.21k forks source link

[vite] Internal server error: Cannot read properties of undefined (reading 'endsWith') #11976

Closed Nefcanto closed 1 year ago

Nefcanto commented 1 year ago

Describe the bug

I'm trying to create the blog page using Qwik at example.local/blog but I see this error:

[vite] Internal server error: Cannot read properties of undefined (reading 'endsWith')

I also sent it to the Qwik team. But since it says vite, I sent it here too.

The problem is that it does not give us any more information whatsoever. Just one vague line. We're stuck at debugging it.

We need the call stack to be able to debug this. And that call stack should also contain info related to our code too. Because just seeing the call stack of vite internal won't help either.

Reproduction

https://github.com/Nefcanto/ViteQwikEndsWith

Steps to reproduce

System Info

System:
    OS: Linux 5.15 Debian GNU/Linux 11 (bullseye) 11 (bullseye)
    CPU: (4) x64 Intel(R) Core(TM) i5-6500 CPU @ 3.20GHz
    Memory: 8.86 GB / 15.52 GB
    Container: Yes
    Shell: 5.1.4 - /bin/bash
  Binaries:
    Node: 18.14.0 - /usr/local/bin/node
    Yarn: 1.22.19 - /usr/local/bin/yarn
    npm: 9.4.2 - /usr/local/bin/npm
  npmPackages:
    vite: ^4.1.1 => 4.1.1

Used Package Manager

npm

Logs

No response

Validations

sapphi-red commented 1 year ago

I was not able to reproduce. I only got the following error in the browser console.

GET http://localhost:5173/manifest.json 404 (Not Found) manifest.json:1 Manifest: Line: 1, column: 1, Syntax error.

Closing as it seems this issue is solved on Qwik side: https://github.com/BuilderIO/qwik/issues/2878