-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Error stack trace line/col points to index.js not to original file #1673
Comments
It’s expected that they aren’t working. You have set the source map mode to |
Sorry, my bad. Forgot to mention that it is local build and all sources are available. I use "external" sourcemap for security reasons. But with "true" it is still not mapped to correct source files. Looks like everything I log inside componentDidCatch is not mapped to the correct source files:
Minified version with sourcemap "true": |
Are you saying that when the error is thrown, it has the correct stack trace, but when you log |
Sorry, the problem is that with prev build system I used not bundled version for dev. |
This isn't super straightforward since esbuild is primarily a bundler, and doesn't include a recursive traversal feature. You can transpile each file with individually by invoking esbuild on each file with bundling disabled, but you may have to write some code to build up the list of files and then pass each one to esbuild. |
Closing as a duplicate of #708. |
Stack trace on the screenshot below points to index.js (line: 49354, col: 18 and line: 49329 and col: 11) but not to the original file (ErroBoundary or Loading)
we are using react/typesript
esbuild config:
The text was updated successfully, but these errors were encountered: