I seem to be getting conflicting messages from the sentry-cli (version 1.44.3):
sentry-cli --auth-token <redacted> releases --org getethos --project main files 5890a9ed6 upload-sourcemaps dist/main
WARN 2019-06-06 09:53:28.353270 -07:00 The default --no-rewrite will disappear. Please specify --rewrite or --no-rewrite explicitly during sourcemap upload.
> Analyzing 14 sources
> Adding source map references
> Bundled 14 files for upload
> Uploaded release files to Sentry
> File processing complete
Source Map Upload Report
Minified Scripts
~/10.5890a9ed6.chunk.js (sourcemap at 10.5890a9ed6.map)
- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/10.5890a9ed6.chunk.js.)
~/8.5890a9ed6.chunk.js (sourcemap at 8.5890a9ed6.map)
- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/8.5890a9ed6.chunk.js.)
~/9.5890a9ed6.chunk.js (sourcemap at 9.5890a9ed6.map)
- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/9.5890a9ed6.chunk.js.)
~/attribution.bundle.js (sourcemap at attribution.5890a9ed6.map)
- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/attribution.bundle.js.)
~/manifest.5890a9ed6.bundle.js (sourcemap at manifest.5890a9ed6.map)
- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/manifest.5890a9ed6.bundle.js.)
~/vendor.5890a9ed6.bundle.js (sourcemap at vendor.5890a9ed6.map)
- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/vendor.5890a9ed6.bundle.js.)
~/webApp.5890a9ed6.bundle.js (sourcemap at webApp.5890a9ed6.map)
- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/webApp.5890a9ed6.bundle.js.)
Source Maps
~/10.5890a9ed6.map
~/8.5890a9ed6.map
~/9.5890a9ed6.map
~/attribution.5890a9ed6.map
~/manifest.5890a9ed6.map
~/vendor.5890a9ed6.map
~/webApp.5890a9ed6.map
So although sentry-cli is reporting sourcemap at... it then emits the warning right after.
I've also tried adding the --url-prefix / flag, to no avail.
Needless to say, my code doesn't get source mapped in the Sentry web UI:

(note: I deftly included my auth token in the original post and have since revoked it :D)
Turns out i was calling Sentry.init with the wrong release version. I fixed it, and now it works with the expected output:
Source Map Upload Report
Minified Scripts
~/10.5890a9ed6.chunk.js (sourcemap at 10.5890a9ed6.map)
~/8.5890a9ed6.chunk.js (sourcemap at 8.5890a9ed6.map)
~/9.5890a9ed6.chunk.js (sourcemap at 9.5890a9ed6.map)
~/attribution.bundle.js (sourcemap at attribution.5890a9ed6.map)
~/manifest.5890a9ed6.bundle.js (sourcemap at manifest.5890a9ed6.map)
~/vendor.5890a9ed6.bundle.js (sourcemap at vendor.5890a9ed6.map)
~/webApp.5890a9ed6.bundle.js (sourcemap at webApp.5890a9ed6.map)
Source Maps
~/10.5890a9ed6.map
~/8.5890a9ed6.map
~/9.5890a9ed6.map
~/attribution.5890a9ed6.map
~/manifest.5890a9ed6.map
~/vendor.5890a9ed6.map
~/webApp.5890a9ed6.map
And source code displays correctly in the Sentry UI:

how to resolve it? i have got the same error
@heisian I got the same error. Could you briefly explain what you did to get rid of it?
You wrote "Turns out i was calling Sentry.init with the wrong release version.", but I don't really get it...
@heisian how did you solve the issue?
All interested people kept asking the same question, how this got resolved, please tell or share your config please
I didn't fix it at all. In Sentry UI the source map url si detected correctly but for some reason the source map is not loaded and makes debugging a real pain. Guess that's my life now... :(
I had a similar problem, maybe this helps you:
https://github.com/getsentry/sentry-webpack-plugin/issues/146#issuecomment-541057138
The key is that the js sdk needs to use the SAME release name as used for uploading the source files and maps.
Here is how you can define the release name for the js sdk: https://docs.sentry.io/error-reporting/configuration/?platform=browser#release
Im having a similar message:
~/server/static/GOIIVzuBnbkri0BwecVrp/pages/_app.js
(...)
Minified Scripts
~/static/GOIIVzuBnbkri0BwecVrp/pages/_app.js (no sourcemap ref)
- warning: could not determine a source map reference (Could not auto-detect referenced sourcemap for ~/static/GOIIVzuBnbkri0BwecVrp/pages/_app.js.)
(...)
the minified scripts are missing a server folder 🤔
Im using SentryWebpackPlugin with NextJS
Release name doesn't work for me... 😞
@mitsuhiko @bretthoerner
I've the same problem in vuejs app, and couldnt fix it, here is my sentry.ts:
import Vue from "vue";
import * as Sentry from "@sentry/browser";
import { Vue as VueIntegration } from "@sentry/integrations";
const node_env = process.env.NODE_ENV;
Sentry.init({
dsn:
"https://[email protected]/3",
integrations: [
new VueIntegration({ Vue, attachProps: true})
],
environment: node_env
});
Can you please tell me how should i fix the problem?(when i trun the logErrors to true, the stack trace which is printed on console will be present on sentry server too,)
@SeyyedKhandon you need to provide sourcemaps in order for us to resolve them - https://docs.sentry.io/sdks/javascript/#upload-source-maps
@kamilogorek the page you mentioned is not found
And Here is what i tried:
https://stackoverflow.com/questions/61498406/sentry-doesnt-use-the-sourcemap-of-vuejs-project
update:
is there any working example(reprex) which is using vue+typescript? (i did every steps which was in the docs for vue configuration, it's working for development time in the local, but not for production)
I've never used Vue alongside TypeScript, but if you provide a repro case of what's your current issue, then I might take a look.
@kamilogorek
Here is a reprex: https://github.com/SeyyedKhandon/reprex-vue.ts-sentry , which i did the default config for sentry which was mentioned on sentries doc, and it doesn't work properly like it should be.
(Actualy i think the document is a little bit confusing about a stright forward way to config and use sentry, also some links are broken.)
.....
update
Thank God, the problem has been solved, soon i'll put the working reprex here.
....
update2
This reprex is in Vuejs+ts+sentry working example, please note that you should config sentry.properties and sentry.ts which are mentioned in the readme.md
For using Sentry with Vuejs.+ts, we should add these configuration:
./sentry.properties
defaults.url=your-sentry-server-address
defaults.org=your-org-name
defaults.project=your-project-name-in-sentry
auth.token=your-auth-token
./src/sentry.ts
import Vue from 'vue';
import * as Sentry from '@sentry/browser';
import { Vue as VueIntegration } from '@sentry/integrations';
if (process.env.NODE_ENV !== 'development')
Sentry.init({
dsn: 'https://[email protected]/14',
integrations: [ new VueIntegration({ Vue, attachProps: true }) ]
});
./src/main.ts
import Vue from "vue";
import "./sentry";
import App from "./App.vue";
import "./registerServiceWorker";
import router from "./router";
import store from "./store";
Vue.config.productionTip = false;
new Vue({
router,
store,
render: h => h(App)
}).$mount("#app");
./vue.config.js
const SentryWebpackPlugin = require("@sentry/webpack-plugin");
const plugins =
process.env.NODE_ENV !== "development"
? [
new SentryWebpackPlugin({
include: "./dist",
ignoreFile: ".sentrycliignore",
ignore: ["node_modules", "vue.config.js"],
configFile: "sentry.properties"
})
]
: [];
module.exports = {
// other configuration
configureWebpack: {
plugins
}
};
Here is the reprex
https://github.com/SeyyedKhandon/reprex-vue-ts-sentry
related stackoverflow question:
https://stackoverflow.com/questions/61498406/sentry-doesnt-use-the-sourcemap-of-vuejs-project/63645027#63645027