1,125
questions
1
vote
0
answers
50
views
Source Maps Not Correctly Mapping Stack Trace in Sentry for Node js
I'm trying to trace where errors occur in my code using Sentry. To achieve this, I'm uploading source maps to Sentry during the build stage in CodeBuild. In the post_build phase, I use these commands:
...
0
votes
0
answers
25
views
Sourcemap enabled but stacktrace is only showing me the line + column number in the *.chunk.js file
I am getting an error from New Relic but it collects the stack trace from the bundle. I have enabled the source maps and can see the source code in the Chrome when I do Ctrl-P in the Source tab.
How ...
0
votes
0
answers
18
views
How to map chunk.js file to ts or tsx file or How can I make sure that when I export har file , it will contain source of tsx file instead of chunk.js
so I wan to get initiator along with file from which it was called. When I observe nw calls in dev tools I can see function along with ts or tsx file from which It was made. But when export har file ...
0
votes
1
answer
37
views
GENERATE_SOURCEMAP=false does not minifying .css files
I have a React application, and I've noticed that when I open Chrome Developer Tools and go to the Sources tab, I can see a folder named static/js. Expanding this folder reveals the entire code of my ...
0
votes
1
answer
35
views
How does AST traversal with Babel affect source maps even when no changes are made?
I have a custom Webpack loader where I'm traversing through the AST of the code using Babel to change the import name of a module. However, it seems like this is affecting the source maps of modules, ...
0
votes
0
answers
27
views
g++ print source-mapped file path in error
I have a C++ file that I'm compiling with g++ with the -ffile-prefix-map option. Is there a way to tell g++ to print the remapped file name when there are build errors? That way, clickable file names ...
0
votes
1
answer
106
views
Flutter build web, how to generate source-map for packages
When building the app using flutter build web --source-maps the generated source map file doesn't include information about the codes coming from packages. Is there a way to also include package ...
0
votes
0
answers
70
views
Sentry flutter source maps missing stack traces and missing_source_content error
I have a problem with Sentry for Flutter. I can't read stack traces and I have a missing_source_content error.
pubspec.yaml config:
sentry:
upload_debug_symbols: true
upload_source_maps: true
...
0
votes
0
answers
64
views
3rd party widget not showing properly on front-end
I've build a vacation rental website for a client who is using Lodgify for their rentals. It's a simple one-page website, build with Elementor. Link to website
There are 3 rental listings, and each ...
0
votes
0
answers
29
views
Why are Chrome devTools trying to load source maps from a wrong folder?
In devtools of a React app on prod I see that it tries to load source files from a wrong location:
https://localhost/appcontent/js/js/app.js.map?771acda80c2a2a0f
Source maps were created and are in ...
1
vote
0
answers
91
views
Terragrunt terragrunt-source-map seems not to replace anything
I have a complex Terragrunt setup. Terragrunt fetches Terraform modules from a remote git repository. For development purposes, I would love to replace one of the remote modules with a local ...
0
votes
0
answers
146
views
How to configure Sentry Webpack sourcemap uploading in Quasar?
I'm trying to follow the documentation of Sentry to configure my Vue.js SPA application to report errors. Given the minification during build, Sentry requires the sourcemap, which is created by ...
3
votes
0
answers
607
views
Next.js 13.4.1 & Webpack 5.89.0: Not Generating Source Maps for Chunks in Production
I'm working on a Next.js project (version 13.4.1) with Webpack (version 5.89.0) and encountering an issue where source maps are not being generated for my JavaScript chunk files in the production ...
2
votes
0
answers
54
views
Why are two of our Angular component templates taking up so much space of our bundle?
I've been trying to figure out ways to reduce our Angular app's bundle size, so I used source-map-explorer to figure out where the bundle size is coming from. When I looked at the output below, I ...
0
votes
0
answers
76
views
Accessing File Name and Line Number in Production Errors with React Error Boundary
I'm implementing an error boundary in my React application to enhance error handling by capturing runtime errors and reporting them to a backend API for logging and analysis. The critical piece of ...
2
votes
1
answer
241
views
Vite sourcemaps show in inspector, but loads different sourcemap in browser
Vite doesn't serve my transform sourcemaps even though they are available in the pipeline,
I'm building a framework plugin and not able to get vite to correctly serve sourcemaps.
Using vite-plugin-...
0
votes
0
answers
40
views
How to have conditional source-maps in next.js
I have a next project where sometimes we would like to debug certain ui elements on the fly. The source map currently on production is minified but I have seen at some places that there are ways where ...
0
votes
0
answers
33
views
How to get source-mapped path to code in Browser in JavaScript?
I have a simple error printing library which successfully retrieves the source-mapped file paths in Node.js and gets the TypeScript file paths/locations, for example. For that, basically it's this ...
0
votes
0
answers
28
views
Sourcemap granularity
I build a tool that does transformations to JavaScript Code. I want to provide a source map to the transformed code for debugging reasons.
I wonder at what granularity the source map is usually ...
0
votes
0
answers
96
views
Vite JS merge output sourcemaps
We're using a vite for a project.
Works great and creates multiple chunks when building.
Recently i enabled sourcemaps and every chunk gets its individual .map file.
However, i'd like to have multiple ...
0
votes
1
answer
136
views
How can error stack traces be logged in Azure Durable Functions for Typescript?
We are using Azure Durable Functions with Typescript and the framework and runtime works great as such, but when a trigger or orchestration fails and throws an exception we are left scratching our ...
0
votes
0
answers
7
views
How to enable SCSS sourcemap not css with parcel
I've set up a parcel project with scss support locally. But all the generated JS and CSS sourcemap are.
How to enable SCSS sourcemap not css with parcel?
1
vote
0
answers
94
views
Understanding Source Map Generation Through Multiple Code Transformations (TypeScript, Hermes, Obfuscator, etc.)
I'm working on a project involving multiple layers of code transformation, and I'm trying to understand how source map generation works in such a complex setup. Our project uses TypeScript, and on top ...
0
votes
0
answers
39
views
Backtrace the source map file where a minificated error happened
I am using componentDidCatch at the very top of my app to catch any errors. When they do happen I send a slack message with the information of the error. This information refers to the minified ...
-1
votes
1
answer
212
views
debug in chrome and step into original code and not compiled one
Suppose that I work in a project with react.js as a dependency.
Now I add breakpoint in my own code and the breakpoint is triggered in chrome.
Is there any way to step through original lines of code ...
0
votes
0
answers
53
views
Cannot set breakpoint in chrome dev tools on executable lines [duplicate]
I cannot set a breakpoint on executable lines in chrome dev tools as shown in the photo below.
I should be able to set breakpoints on lines 75 and 78 but I cannot.
I tried stopping the server, ...
0
votes
0
answers
69
views
Fetch .js.map Sourcemap files via ServiceWorker
I am using a ServiceWorker to intercept and serve .js files.
The Chrome Developer Tools -> Sources tab is reporting a 404 error attempting to load the .map files for the .js files.
The request for ...
0
votes
0
answers
73
views
Can I use the chrome extensions api to listen for source map requests?
I'm trying to write a chrome extension to change the source map from which my page's source map is loaded. I hope to monitor the source map request initiated by chrome and add the Authorization ...
0
votes
0
answers
111
views
Source maps using transpiled variable name
After looking at a myriad of questions & answers:
Debug Angular/Typescript in visual code appends '_1' to variable
Debugging VS Code with Typescript shows transpiled variable names ...
0
votes
0
answers
350
views
Hitting breakpoints with Vite Preview
I'm using Vite to build a React application. Currently, I just have the default counter application when I use the React template with Vite. If I run npm run dev, then launch VS Codes debug mode with ...
0
votes
0
answers
396
views
Angular SourceMap fails to load: "DevTools can't show authored sources"
I have an Angular project that uses 3rd party software, from NGX Lightning. When I run the project in Chrome, and look through the Sources tab in the developer tools, I can only see the compiled main....
1
vote
0
answers
120
views
Sourcemap is off for vite/vue
In vue/vite/rails stack sourcemap is completely off.
Devtool showing incorrect line on error/debug.
Can figure out what exactly causing issue.
vite.config.ts:
import {defineConfig} from "vite&...
0
votes
1
answer
101
views
How to output stack traces pointing to the original files instead of the bundled files in a node app?
I have a node app that is bundled with sourcemaps (inline or not makes no difference) using Rollup.
When an error is thrown, I get something like
Error: FF
at Function.<anonymous> (/.../...
2
votes
0
answers
125
views
React Native Expo with Bugsnag Sourcemaps bugsnag-eas-build-on-success Not found
I am trying to get sourcemaps to work on an expo 49 project.
the bugsnag docs say to add this to package.json
"scripts": {
...
"eas-build-on-success": "npx ...
0
votes
0
answers
39
views
tsc not emitting correct sourceMapURL location
I'm having issues with using "sourceMaps": true in my tsconfig.json
I currently have tsc set up so that src/services/database.ts generates dist/services/database.js and dist/services/...
0
votes
0
answers
124
views
Webpack configuration: source-maps and development/production mode
So, I have the following configuration for Webpack. I have only 2 doubts:
how can I switch from Development mode to Production mode by simply changing my command?
At the moment I use the command &...
-2
votes
1
answer
158
views
Is there any way to reverse code after build project by typescript tsc command
the project still have sourcemap file, using the typescript of version 4.7
Is there any way to reverse the code ?
using the reverse-sourcemap not working, return the message of "Not all sources ...
1
vote
0
answers
55
views
Angular: How to know what is causing this huge space allocation in html file in Source Map Explorer
I am trying to optimize an angular application and I am using Source Map Explorer to identify which part of my application is taking a lot of space.
Command to build my angular project:
ng build --...
0
votes
1
answer
422
views
How to use local sourcemaps instead of uploaded ones in sentry
Sentry's documentation explains how to upload sourcemaps to sentry by using the sentry-cli.
But in my case I do not want to upload those to sentry,
instead all my sourcemaps are stored right next to ...
1
vote
2
answers
319
views
Obtaining "Invalid string length" while running ng build of a library
In Angular (see spec below), trying to generate a large library, thus running ng build <project>, we obtain
❌ Generating "fesm2015"
Invalid string length
Indeed, fesm2020 build ...
0
votes
0
answers
70
views
HTML sourcemap convention
Per the Source Map spec §6.2:
There are two suggested ways to link source maps to the output. The first requires a server support to add a HTTP header and the second requires an annotation in the ...
0
votes
0
answers
42
views
Showing line number of source code in Electron app devtools
I want to show the source code line number in my Electron/Capacitor app instead of the chunk line number in the console section of the dev tools.
Current display
Is there any way to do this?
I enabled ...
0
votes
1
answer
73
views
Gulp don't create sourcemaps
I'm studying Gulp and trying to generate sourcemaps for my JavaScript file app.js, but sourcemaps generation isn't working as expected. I came across some old answers suggesting using the gulp-...
0
votes
0
answers
174
views
Source maps not working on sentry when client side error occurs (webpack-plugin used with Next js 13)
I followed the manual setup to send sourcemaps to sentry with @sentry/webpack-plugin and @sentry/nextjs since I use Next js framework on my project. The new release created on sentry includes ...
0
votes
1
answer
575
views
How can I bind break points in both my Angular application and library in VSCode, I can only get working in one or the other, not both
I am attempting to get debugging in vscode working for both my application and my lib for Angular 16 at the same time. The structure is as follows:
./root
./root/my-app/src
./root/lib/projects/my-lib
...
0
votes
0
answers
8
views
Is there a way we could exclude folders or files from being minified in webpack when sourcemap is disabled?
Is there any way we could exclude few files or folders from being minified in webpack?
I could find any solution, is it possible to do so?
-3
votes
1
answer
175
views
VS Code Aug 2023: How can source maps be automatically loaded from authenticated endpoints
The release notes from the newest (Aug 2023) VS Code release says:
Source maps can now be automatically loaded from authenticated endpoints
That's great! But to use this, we need some more info:
...
1
vote
1
answer
844
views
Sentry sourcemaps not working for Expo 49 builds
I had a script that ran
eas update --branch <DEVELOPMENT> --non-interactive --auto --json
and then called sentry-cli upload-sourcemaps to upload output of eas update to sentry.
However, it ...
1
vote
0
answers
40
views
Is it possible to encode DWARF debug information into wat (wasm textual format)?
I'm developing a compiler that compiles to WebAssembly Text format (.wat) and want to include debug info. Is it feasible to include DWARF debug information within the .wat file, or is it more ...
0
votes
0
answers
679
views
Chrome DevTools Local Overrides Not Reflecting Changes in Webpack Source Maps
I've been experimenting with the Chrome DevTools' local overrides feature to modify a specific JavaScript file on a website. However, I've run into an interesting situation that I need some guidance ...