bugsnag / webpack-bugsnag-plugins

Webpack plugins for common BugSnag actions.
MIT License
32 stars 29 forks source link

Sourcemaps wildcard matching seems to be broken #41

Closed jzavisek closed 4 years ago

jzavisek commented 4 years ago

It seems that Bugsnag dashboard is unable to load sourcemaps files for wildcard URLs. I use this configuration:

new BugsnagSourceMapUploaderPlugin({
  apiKey: process.env.BUGSNAG_CLIENT_API_KEY,
  overwrite: true,
  publicPath: "https://*.--hidden--.co/_next/"
}),

These are the results: bugsnag-issue

Dashboard doesn't match source map file to the error. Any ideas?

abigailbramble commented 4 years ago

Hi @jzavisek - what is the application version reported on your error? This is displayed on the 'App' tab of your error event.

jzavisek commented 4 years ago

Hello @phillipsam Do you mean this?

image

abigailbramble commented 4 years ago

@jzavisek yea You will need to set the application version in your app: https://docs.bugsnag.com/platforms/javascript/configuration-options/#appversion

The source map will only be applied if the url and app version reported by the error event match the url and app version for the uploaded source map. Since your source map has a version of 3.30.0, you will need your error event to report the same.

jzavisek commented 4 years ago

I see, that makes sense. Thanks for the clarification @phillipsam.

abigailbramble commented 4 years ago

@jzavisek No problem. Closing for now, but let us know if you have further issues!