question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Getting sourcemaps / releases working

See original GitHub issue

Version

v4.1.3

Reproduction link

https://github.com/cdnjs/static-website

Steps to reproduce

I have the following config in nuxt.config.js:

    sentry: {
        dsn: sentryDsn,
        publishRelease: 'SENTRY_AUTH_TOKEN' in process.env,
        sourceMapStyle: 'hidden-source-map',
    },

sentryDsn is a valid DSN url imported from another config file.

The SENTRY_AUTH_TOKEN environment variable is set during build & start.

.sentryclirc has our org/project set correctly:

[defaults]
org = cloudflare
project = cdnjs-website

When nuxt build is run, it creates the release correctly on Sentry as far as I can tell, using the latest commit hash.

However, when errors are then generated in the app (after nuxt start), they appear in Sentry without any attached release and don’t appear to be using the source maps.

What is expected ?

Maybe I’m configuring something wrong, but I would expect errors generated both server-side and client-side to be correctly attached to the release generated during nuxt build and to use the source maps so that the stack trace is useful in Sentry.

What is actually happening?

Issues have no attached release and don’t use the source maps, resulting in the stack trace being the raw bundled files which is unusable.

<div align="right">This bug report is available on Nuxt community (#c104)</div>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:13 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
rchlcommented, Jul 29, 2020

Just a note that while this fix catches the newly-added sentry-cli usage, the sentry-webpack-plugin would still crash when release is not set. So I guess you have to unset publishRelease also when you don’t have the version. Maybe the module should do it itself (with an extra warning printed)…

0reactions
rchlcommented, Jul 29, 2020

So I guess you have to unset publishRelease also when you don’t have the version. Maybe the module should do it itself (with an extra warning printed)

In v4.3.2 the publishRelease will be ignored (with a warning printed) when release is not defined.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Source Maps for JavaScript
For artifacts, go to the Source Maps page in project settings, choose the release shown on the event you just checked, and verify...
Read more >
Use a source map — Firefox Source Docs documentation
A source map is a file that maps from the transformed source to the original source, enabling the browser to reconstruct the original...
Read more >
Source Map Troubleshooting
Source maps still not working? See our Source maps FAQ for more details and limitations of source maps in Rollbar, or get in...
Read more >
Map the processed code to your original source code, for ...
Enable source maps in Settings · To open DevTools, in Microsoft Edge, right-click a webpage, and then select Inspect. · In DevTools, click ......
Read more >
Getting Things Set Up With New Relic Browser Source Maps
Because the source map changes every time you update the source code, it's important to know which release caused the error.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found