-
Notifications
You must be signed in to change notification settings - Fork 584
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
Next.js example does not seem to work with next@^6.0.0.0 #103
Comments
Hello, |
The same issue here: OS: Arch Linux, x64 |
Same problem with launch.json: |
Here are some notes that might help us figure out what's wrong. These are just things I noticed when trying to debug this issue.
|
I was able to fix the issue for myself. I was staring at the source map for a while and noticed that the
I don't know if this is the proper fix. Maybe there is an issue in babel, next.js, webpack, or vs code, but this got breakpoints working again. |
@timmywil I build from the
and every permutation of adding/removing |
@leifdalan I'm not sure, but note that you should probably still keep the other default entries in |
Issue seems to be related to a change in next.js. I've opened an issue on their side: vercel/next.js#4571 |
@timmywil's fix worked for me. Thanks! |
@timmywil Thank, w/ your solution Chrome debugging worked. Still no luck for server side code, like |
This is working for me on the server side and client side
|
Trying the debug config for next.js 7. Still not working for Chrome. Breaking at random source lines. @zerocity config is not working for me. Debugging in Chrome dev tools is working -> not sure it is a Next.js issue. |
I have the same issue, unpredictable code breaking, rather depressing! Any updates? Thanks! :) |
I tested the config on windows with next 7 and it works. |
Got the same issue, I tried everything and still does not work! It just randomly jumps over some line and breaks in some line that it doesn't have any breakpoints! |
Mostly if it jumps something is wrong with the sourcemaps configuration.
|
Duplicate of #80 |
Hello,
I'm trying to debug Next.js applications, running with the latest version of next.js which is 6.0.3. But I did not manage to have my breakpoints recognized in the vscode node debugger.
To reproduce, you can clone nextgram and update next (also react and react-dom) to the latest version.
Here is my launch configuration. I changed the
runtimeExecutable
to use the local next installation:All my breakpoint are
Unverified breakpoint, Breakpoints set but not yet bound
so I assume this could be a source map issue.I'm running MacOS 10.13.3 with Node v10.1.0 and npm 6.0.1.
Did someone experience a similar issue ❓
Thank you 😸
The text was updated successfully, but these errors were encountered: