1,121 questions
0
votes
1
answer
1k
views
Nrwl/React - Upload source maps to sentry
I'm working on a React application inside my NX Workspace.
Now I want to add sentry to my project. I already have a deploy configuration in my project.json. But I'm struggling with adding the step to ...
0
votes
1
answer
3k
views
sourceMap set to true everywhere, but no typescript sources appearing under my Firefox browser debugger (Angular 14)
source maps are expected to come quite instantaneously on web browsers, when starting an Angular application in dev mode, with ng serve. Provided "sourceMap": true is sat, according to what ...
-1
votes
1
answer
308
views
How do I generate a sourcemap for an inline script inside of a html file?
I have a html file that has scripts inline that modifies how the html looks like:
/* html code */
<script type=module>
document.getElementsByClassName('test')[0]....
// some other code
</...
0
votes
1
answer
1k
views
Typescript sourcemap wrong mapping because of injected js codes
Hi there I have very weird problem. I am trying to use sourcemap on one of my clients SharePoint site but on that site they are using could defender app which injects some js codes in my js files and ...
1
vote
0
answers
446
views
Sentry Sourcemaps: bad json: invalid type: map, expected a string
I've been tasked with integrating Sentry into our front-end application and I'm having some trouble with it.
After building our source I've set the pipelines to upload our sourcemaps to sentry with:
...
0
votes
0
answers
668
views
404 error for JavaScript source mapped from minified js and source map
I have a angular.min.js JavaScript file and a angular.min.js.map source map file for a site. The minified JS file seems to be working fine on the site.
I am using chrome for debugging. Under the "...
1
vote
1
answer
2k
views
Next.js: Use source maps for errors during build/pre-render
Is it possible to get full stack traces for errors that are emitted from pre-rendering during build, using source maps for the generated code?
Currently, if pre-rendering a page fails during next ...
5
votes
0
answers
1k
views
How to generate a source map in the monorepo?
I am new to monorepo.
The thing is they want me to upload a sourcemap to the rollbar.
But I don't know how to generate one.
When I ask for help they told me to read documents. I read the documents / ...
0
votes
0
answers
332
views
Incorrect line numbers in Jasmine/Karma and Chrome debugger
When I run my unit test cases using Jasmine/Karma and debug the application in Google Chrome, when I set breakpoints and step through the application, the line numbers the application stops on are ...
1
vote
1
answer
959
views
How to programatically find position in original js file based on position in minified file and sourcemap file?
So if I have script.js (original file), script.minified.js (minified file) and script.minified.js.map (source map file) - how do I find position in original file based on random position in minified ...
1
vote
2
answers
776
views
How to map client-side code to Source Code
Recently I learned that it's possible to show JavaScript code added to the DOM / Dev Tools Elements tab by using document.write, eval, etc. to the Source panel of Chrome Dev Tools and other browsers. ...
2
votes
0
answers
191
views
How to add Sentry Source Map for Electron App
I have an electron app and I use Sentry for error tracking. I am not using webpack in my electron app and I would like to generate the map files and upload them and test them.
It seems I have quite ...
1
vote
1
answer
168
views
How do I compose multiple sourcemaps in node.js?
I have a transpiler that takes input source and outputs TypeScript with a valid source map. The TypeScript compiler takes that TypeScript and outputs JavaScript with another source map. Is there a ...
0
votes
1
answer
1k
views
How do I inform lldb debugger where the source code is?
I have an executable that makes use of /usr/lib/libcrypto.0.9.8.dylib. I've (more or less) figured out some breakpoints within that library that I'd like to understand better.
However, I do not ...
0
votes
1
answer
766
views
How to reduce sourcemap files?
I know I can reduce my code files by compressing them. But how can I reduce the file size of my source map? When I parse my code by Sentry. I get the exception that the source map too large. I try to ...
1
vote
0
answers
34
views
JavaScript global ErrorHandler: Get source map translated line from an error
I have a custom global error handler:
window.sparkErrorHandler = function(message, url, line, column, error) {
logError(message, url, line, column, error);
}
Probem is, when the error is from a ...
3
votes
0
answers
1k
views
Flutter Web App Source Map not loading in Chrome (http error 404)
I have built a flutter web app using the command:
flutter build web --release --source-maps
I am running this app on localhost and also on cloud (GCP Cloud Run). In both cases, the web app throws ...
2
votes
0
answers
228
views
Source map does not resolve variables while debugging CRA app
Recently, I've tried to debug my CRA app and it occurred that variables are not resolved using source maps. The code is resolved but not variables. I tried in Chrome as well as in WebStorm (running in ...
1
vote
0
answers
327
views
Chrome does no apply mappings from SourceMap to console output
I have a project set up using webpack that includes an inline sourcemap (including sources) in the generated bundle during development. The bundle runs as a plugin to an electron app (Electron 18.0.4, ...
1
vote
1
answer
147
views
Can't access Heroku /tmp/build_{sha} build files in Github Action once build has completed
I run a Github Action that deploys my app to Heroku with two relevant steps.
Build Step: push to Heroku, build (including heroku/nodejs buildpack), create JS sourcemaps (among other things).
Sentry ...
1
vote
0
answers
1k
views
Angular cli build with sourceMap with option hidden
I want to build Angular with sourceMap, but without map file reference, so a hidden option must be set in angular.json
but a json file is not flexible, I want to set it as command line parameter, just ...
1
vote
0
answers
1k
views
How to add source maps to Sentry on NextJs app with custom server?
After reading some Github issues I have added this webpack plugin into my next-config.js
new SentryWebpackPlugin({
include: ['.', '.next'],
ignoreFile: '....
8
votes
1
answer
3k
views
Printing error stack with source (from source map)
I keep reading that source maps are natively supported in Node. But I don't understand how I can use the source maps when printing an error to the console.
I have tried running node with --enable-...
3
votes
0
answers
1k
views
Use Sentry Releases in a yarn monorepo
I'm using a Yarn monorepo which contains Typescript modules that provide content to the backend. I'm using a Github Action workflow for each module to deploy it. In the shared SDK is Sentry configured ...
1
vote
1
answer
1k
views
How to get a mapped Url in Vite? Source map
I have not yet entered the world of plugins, but I have one idea and I want to test it as simple as possible.
Question:
I have a url WITHOUT SOURCE MAP, e.g. instance/$$self.$$.update@http://localhost:...
0
votes
0
answers
207
views
How do I make VSCODE understand source maps for concatenated coffeescript files?
Trying to use the VSCODE debugger on some coffeescript but part of the build process has grunt-contrib-coffee concatenate a bunch of the sources then compile it and create source maps.
ie Gruntfile:
&...
0
votes
0
answers
567
views
Webpack-dev-server hangs forever trying to fetch Microsoft Teams sourcemaps
I currently have the problem that a TypeScript app (with Webpack using Webix-Jet) takes forever to load, because apparently it tries to resolve countless source maps to some Microsoft Teams SDK files (...
13
votes
1
answer
6k
views
Processing source-maps of XXX.js took longer than YYY ms so we continued execution without waiting for all the breakpoints
[Edit] This actually happens on a newly created barebones React+Typescript template ViteJS app as well, with zero modifications. Putting a breakpoint in App.tsx makes the VS Code debugger startup ...
1
vote
0
answers
230
views
Uploading sourcemaps to Sentry with Heroku deployed react app
I have a React project I'm working on, I use Heroku to deploy and manage the app and Sentry to monitor it.
Currently I'm building the app without sourcemaps so the source code will not be available on ...
0
votes
1
answer
2k
views
Confusion with source-map-explorer analyzer in ReactJs project
I have a moderately sized React project, and the production build size of the main.xxxx.js file is too large (19.3 MB). I'm trying to reduce it.
After some googling, I learnt the first step is to ...
0
votes
0
answers
737
views
Invalid Stack Traces in Safari with Vite and Vue3
I'm working on a project that my team upgraded from Vue2/Webpack to Vue3/Vite. We use a crash monitoring tool, Bugsnag, to notify us when a crash occurs. We've recently noticed that when a crash ...
1
vote
1
answer
1k
views
Chrome overrides add file manually
I have a production (for specific site) JavaScript file which I'm overwriting (using Chrome Overrides) with my local development version. I wrote a script that watches for changes in my local files ...
0
votes
1
answer
730
views
Source maps are not properly showed in create-react-app
I was wondering why the first and the second lines are referring to instrument.js but the third line can properly show the source which is Toolbar.tsx. Source maps are generated by webpack. How can I ...
4
votes
1
answer
3k
views
Where are sourcempas located and how do I generate them in Sveltekit?
I cannot find them anywhere, I don't even see that they are being created when I run npm run build. I am using the latest version of sveltekit with typescript. I would assume the sourcemaps would be ...
2
votes
1
answer
725
views
How to disable sourcemaps in Preact production build?
I haven't use preact before. tried a working method with react. seems it's not working with preact.
5
votes
1
answer
897
views
Minified component stack trace in create-react-app (dev mode)
Running create-react-app in development mode:
Why do my console errors link to minified code chunks? I thought I remember CRA being able to show the source mapped files.
6
votes
8
answers
8k
views
Typescript breakpoints with VSCode
I've this Yeoman scaffolded project from the generator-express-no-stress-typescript template. I need to debug it, as in "step through the typescript code" with Visual Studio Code (and no, ...
2
votes
1
answer
710
views
Chrome dev tools, unusual behavior, shows variables as undefined but still accesses the members
I might need some help with better explaining and defining this problem, as is i only know this happens in chrome devtools, that the code i'm looking at has been compiled with parcel, and that i'm ...
1
vote
0
answers
152
views
React Webpack - index.js.map module parse error
Compiled with problems:X
ERROR in ./node_modules/my-project/dist/index.js.map 1:10
Module parse failed: Unexpected token (1:10)
You may need an appropriate loader to handle this file type, currently ...
0
votes
1
answer
96
views
Is webpack package included in my final react bundle.js?
I am working on a legacy project which has a huge bundle size(>10MB).To analyze the packages and bundle size I have installed danvk/source-map-explorer tool.
Upon running the tool it is showing ...
1
vote
0
answers
1k
views
CSS sourceMap with sass-loader, postcss-loader, and MiniCssExtractPlugin in Webpack 5
Seems like I've followed all the instructions to generate CSS source maps, but still not finding them in the output CSS (I expect to see something like /*# sourceMappingURL=base.css.map */ in the ...
14
votes
3
answers
9k
views
Content and Map of this Source is not available (only size() is supported) Angular 13
I have been working with angular project and have angular version is 13 and node is 16 versions.
When i use command npm run start its throwing an error(compilation error). Pasted the error below
Error:...
48
votes
13
answers
55k
views
Why am I suddenly getting "Could not read source map" in VSCode using Angular with NodeJS 17 and above?
I suddenly can't debug my Angular Application. Not quite sure what I did. It might have happen after I updated node.js
Angular: 13.1.1
NodeJS: 18.1.0
VSCode: 1.67.1
Launch.json
"configurations&...
0
votes
0
answers
53
views
React script not including dependent module source map if size of dependent module exceeds 244kb
I have react project (create using create-react-app) called "ui-web" and it has dependency on "ui-core". When bundle size of "ui-core" was less than 244kb, final build of ...
12
votes
2
answers
5k
views
React Native Stack Traces that point to original files
When I have an error in my React Native app, the stack trace that is printed to the console points to index.bundle instead of the original source code (see example below). Is there a way to configure ...
0
votes
0
answers
364
views
With webpack / source maps / Chrome devtools, stepping into a function call requires several hops
I'm evaluating webpack for a 10K-line JavaScript app with a bit of PaperScript. To test debugging (in Chrome devtools) I configured a tiny test project with source maps (devtool: 'eval-source-map'), ...
2
votes
0
answers
627
views
Does react native include sourcemaps in the release bundle?
For security, I would like to remove sourcemaps if they are included in the release bundle of react native apps. I'm pretty sure they're not included but I can't seem to find a definitive answer about ...
1
vote
0
answers
2k
views
Angular and electron source map issue
I have a project using Angular 13 on electron 18 where the source maps seem to link to the wrong source lines when I set the target in tsconfig.json to anything higher than es5. If I place breakpoints,...
3
votes
1
answer
260
views
Sourcemaps doesn't work with spago (purescript)
Spago doesn't use source maps to refer to the source code location of an error in the stack trace.
Here is my Main.purs:
f :: Unit -> Unit
f _ = unsafeCrashWith "error"
main :: Effect ...
14
votes
1
answer
15k
views
How to debug a VueJS 3 Typescript project with VS Code and Chrome using SourceMaps (with Vue CLI and Webpack)?
Tl;dr
The VS Code debugger always says Unbound breakpoint but setting break points in chrome dev tools works and opens the respected file in VS Code automatically (after that the VS Code debugger for ...