1,121 questions
0
votes
0
answers
40
views
How to configure urlPrefix in @sentry/vite-plugin to map CDN-served assets to Sentry sourcemaps in Nuxt 3 + Vue 3
I'm building a Nuxt 3 application (using Vue 3 and Vite as the default builder) and integrating Sentry for error monitoring with sourcemap uploads. My build artifacts are uploaded to a CDN (e.g., AWS ...
0
votes
0
answers
65
views
Alloy sourcemap integration not resolving minified Angular stacktrace
I’m trying to configure Grafana Alloy to resolve my Angular application’s stack traces using source maps, but the mapping isn’t working as expected. Even though I have the sourcemaps downloaded ...
1
vote
0
answers
49
views
NPX gulp generated sourcemaps keep changing line endings (CRLF vs LF)
I'm running into a recurring problem after running npx gulp to initiate the build process (scss -> css builds).
After each initialisation run,Git shows that a huge number of .css.map files have ...
0
votes
0
answers
64
views
How to extract debundled JavaScript files via CDP or Playwright
I've been trying to programmatically extract the original, debundled JavaScript source files behind a web app that uses Webpack bundles and source maps. While Chrome DevTools clearly shows the ...
0
votes
0
answers
42
views
VS Code debugger shows incorrect step-over order for TypeScript, but actual execution is correct
I'm experiencing a very strange debugging issue in VS Code while developing an extension, and I've exhausted all my debugging knowledge.
The Problem
When step-over debugging my TypeScript code, the ...
1
vote
0
answers
51
views
js sourcemap that maps a to t.a
I am developing a js code converter. here is a(much simplified) example input.js
let a=5
let b=6
const result = a + b;
console.log(result)
and the corresponding output.js
const t={}
t.a=5
t.b=6
t....
1
vote
0
answers
579
views
The browser did not load Source map when using Vite to build the output
I have enable the source map when using vite "vite": "^5.4.18" to build the react project like this:
build: {
outDir: "build",
sourcemap: true,
rollupOptions: ...
0
votes
0
answers
29
views
Strack trace line mismatch eventhough source maps are enabled
I am developing a Vue 3 / Nuxt 3 application with Vite, Nitro and SSR.
I have issues with understanding errors that happen on the server side when running the dev server.
For testing purposes I am ...
1
vote
0
answers
51
views
How to make VS code load sourcemaps from an ASP.NET Core app
I am trying to hit breakpoints in VS code when serving an SPA from an ASP.NET Core app.
The SPA is built with webpack and placed in the ${workspaceFolder}/build folder.
The content is then copied to ...
0
votes
0
answers
102
views
Angular 17 esbuild: Code Masked but Not Minified in Production/Sandbox
I recently migrated my Angular 17 project from Webpack to esbuild as the build tool. Since this change, I've encountered an issue with my production and sandbox builds. While the code appears masked (...
0
votes
0
answers
14
views
No sourcemaps when output.filename has .jsm extension
If the value for 'filename' in the 'output' section of a webpack configuration is set to a name that ends in '.jsm', no source map file is stored in the output directory, even if the babel loader is ...
1
vote
0
answers
77
views
Getting incorrect line number from source-map for React component
I'm struggling to make sense of source map for a next.js app. My goal is to be able to remotely log a client error and determine where it came from in the source. I'm using the source-map npm library. ...
0
votes
0
answers
71
views
Source maps not generating in production
I am able to see the source maps when I run the application locally i.e "npm start". Even it points to the exact line of exception.
But when I run "npm run make" and open the myApp....
1
vote
1
answer
111
views
why recent angular project build outputs individual component css source map
I generated a new Angular 18 project from scratch and brought over my components to take advantage of new option defaults and settings. I'm happy I did so, but I noticed that it now seems to be ...
0
votes
1
answer
108
views
inline sourcemaps is not happening when changing it to be inlined?
Inline source maps when i build my angular project/app
I seem to have some problems with my build configuration for angular
I cannot to inline my source maps,
What I've tried:
I've so far tried to set ...
0
votes
1
answer
38
views
How to get sourcemapped stack from JavaScript Error object in the Browser?
When I create err = new Error("test-error") and console.log(err) I can see the stack mapped to the original sources using the sourcemap in the developer console.
But when I read the err....
1
vote
0
answers
347
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
1
answer
63
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
145
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
32
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
1k
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 ...
1
vote
1
answer
349
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 ...
5
votes
0
answers
1k
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
68
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 ...
2
votes
1
answer
769
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
1
answer
229
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 ...
1
vote
0
answers
167
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 ...
-1
votes
1
answer
429
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
54
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
170
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
90
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
933
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
149
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
160
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
1
answer
391
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
74
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/...
-1
votes
1
answer
336
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
66
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
622
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
734
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 ...
1
vote
0
answers
119
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 ...
1
vote
1
answer
110
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-...
2
votes
1
answer
1k
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
...
-3
votes
1
answer
309
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
1k
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
91
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 ...
1
vote
0
answers
1k
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 ...
1
vote
1
answer
2k
views
Sentry issue not unminifying code with uploaded source maps
I'm working on a ReactJS (create-react-app) project.
I do not generate source maps in my production build. But I still want to be able to unminify code for issues in production. In an attempt to ...
1
vote
0
answers
74
views
Errors started to point to the bundle
For some reason, the error outputs for my React project now point to the bundle and not to my code:
Based on the linked post, I added the webpack.config.js file:
module.exports = {
devtool: '#...
1
vote
0
answers
265
views
Nextjs 13 - Webpack just show one css file in dev, needed in dev see the source map (css files) in detail
first sorry if I write some bad english (not my native language). Im new in Nextjs and im using version 13.4 and for css i use SASS I have a problem with webpack. When I was using just react in dev on ...