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

Extension Does Not Work Properly With Vite #362

Open
crazyjat opened this issue Apr 18, 2024 · 1 comment
Open

Extension Does Not Work Properly With Vite #362

crazyjat opened this issue Apr 18, 2024 · 1 comment

Comments

@crazyjat
Copy link

crazyjat commented Apr 18, 2024

I am currently using react-scripts start to run my React app. I am able to set and hit breakpoints and everything works as expected. We are switching to using Vite and after updating our build process to use Vite breakpoint debugging has become unusable. Because my code is proprietary, there is no way I can post it as an example, and while I do have a smaller example that exhibits odd debugger issues, I can't get an exact repro for every case.

The issue we are seeing is that after moving to Vite, line numbers that are reported in VS Code when hitting an exception are just plain wrong. Like wildly wrong. In other cases we will set a breakpoint in a file and the debugger will stop on a completely unrelated line. In other cases the debugger will simply stop at phantom breakpoints.

Before I go through the arduous process of creating an example repo in github or something to try to create a project that reproduces these issues, can someone confirm whether this is a known issue and has a work-around? Or if anyone else is experiencing this?

To confirm. switching back to react-scripts everything works as expected, but using Vite, breakpoints don't work consistently.

@Eptagone
Copy link

I'm also using Vite and breakpoints are never triggered.

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