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

popup freezes / flickers on 'vite dev mode' after switching branches #900

Open
1 of 2 tasks
Toumash opened this issue Jul 4, 2024 · 1 comment
Open
1 of 2 tasks

Comments

@Toumash
Copy link

Toumash commented Jul 4, 2024

Build tool

Vite

Where do you see the problem?

  • In the browser
  • In the terminal

Describe the bug

Originally posted by @mp3por in #892 (comment)

I was not able to get the HMR working. When I change my code to look like yours however I get the following issue. This screen keeps flickering. I don't understand enough to debug further.

image

My response:

try it one more time. This is an issue i also have sometimes when swiching branches - restarting the dev server several times helps (and if not remove .vite or node_modules, npm install and run again). It is independent from HMR but something with a server startup.

This is an issue i experience sometimes when swiching branches - restarting the dev server several times helps (and if not remove .vite or node_modules, npm install and run again)

image

Reproduction

  1. Have a project with popup in react
  2. Switch branch when vite dev is opened
  3. The popup will go into 'vite dev mode' forever
  4. Kill the dev server
  5. Start it again
  6. Nothing changes
  7. Try again and again and eventually it will load

I need more people to report it so that we can have a proper repro. For me its when i switch branches but im not sure what is the solution. Sometimes i delete node_modules and .vite folders but its not 100% guaranteed to fix the issue

image

Logs

Just 404s from the dev server.
The popup devtools just gets HTTP 404 in a infinity loop

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (20) x64 12th Gen Intel(R) Core(TM) i7-12700H
    Memory: 5.44 GB / 31.70 GB
  Binaries:
    Node: 20.12.2 - C:\Program Files\nodejs\node.EXE
    npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.3.0 - C:\ProgramData\chocolatey\bin\pnpm.EXE
  Browsers:
    Edge: Chromium (126.0.2592.87)
    Internet Explorer: 11.0.22621.3527
  npmPackages:
    @crxjs/vite-plugin: ^2.0.0-beta.23 => 2.0.0-beta.23 
    vite: ^5.2.11 => 5.2.11

Severity

annoyance

@Toumash Toumash changed the title Vite dev mode after switching branchaes popup freezes on 'vite dev mode' after switching branchaes Jul 4, 2024
@matyas-gubis
Copy link

I had the same issue, and I was also jumping between branches. I could not yet find it, and at the moment of reading your comment, I have no access to my dev setup. Will try further soon

@Toumash Toumash changed the title popup freezes on 'vite dev mode' after switching branchaes popup freezes on 'vite dev mode' after switching branches Aug 23, 2024
@Toumash Toumash mentioned this issue Oct 18, 2024
2 tasks
@Toumash Toumash changed the title popup freezes on 'vite dev mode' after switching branches popup freezes / flickers on 'vite dev mode' after switching branches Oct 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants