Next.js: Source maps info don't show in with-sentry example

Created on 27 Sep 2019  路  2Comments  路  Source: vercel/next.js

Cloned with-sentry example, provided DSN, as described in readme. Built the app in production mode, raised an exception. Result - error stack traces point to uglified files:

image

As I see in the code, it should provide source maps to sentry.

Any additional configuration needed to set up source maps? Or it's just a bug?

good first issue example

Most helpful comment

I've tried uploading the source maps to sentry but it actually didn't work, could you give an example on how to upload the files to sentry?
More on the issue reported here:

All 2 comments

Sentry will try to fetch the sourcemaps relatively to your hosted scripts. There are common pitfalls:

  • You use a different domain e.g CDN to host your files
  • You didn't enable the token mechanism
  • On SSR it can't work because nodejs doesn't respect sourcemaps
  • Sentry can't fetch the files in development localhost
  • You can inline your sourcemaps but this is not ideal since it expose your source code.

As a solution you can upload your source maps to sentry.

https://docs.sentry.io/platforms/javascript/sourcemaps/

I've tried uploading the source maps to sentry but it actually didn't work, could you give an example on how to upload the files to sentry?
More on the issue reported here:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

DvirSh picture DvirSh  路  3Comments

pie6k picture pie6k  路  3Comments

olifante picture olifante  路  3Comments

renatorib picture renatorib  路  3Comments

havefive picture havefive  路  3Comments