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

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

Closed
7 tasks done
Nefcanto opened this issue Feb 8, 2023 · 1 comment
Closed
7 tasks done

Comments

@Nefcanto
Copy link

Nefcanto commented Feb 8, 2023

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

  • Clone
  • npm install
  • npm run dev
  • Go to locahost:port/blog, you should see the error

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
Copy link
Member

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: QwikDev/qwik#2878

@github-actions github-actions bot locked and limited conversation to collaborators Mar 1, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants