I am able to see issues on my Sentry dashboard, but they are not coming with stacktraces which makes it hard to debug issues. I am using webpack to automatically upload my sourcemaps and it appears to be working since I can see main.js and main.js.map in my releases artifacts tab (see picture).
My tsconfig.json looks like:
{
"compilerOptions": {
"outDir": "./dist/",
"sourceMap": true,
"noImplicitAny": true,
"module": "commonjs",
"target": "es6",
"jsx": "react",
"esModuleInterop": true,
"allowJs": true,
"inlineSources": true,
"sourceRoot": "/"
}
}
Likewise, my webpack.config.js looks like:
const SentryWebpackPlugin = require("@sentry/webpack-plugin");
module.exports = {
devtool: "source-map",
module: {
rules: [
{
test: /\.ts$/,
exclude: /node_modules/,
use: {
loader: "ts-loader",
}
},
{
test: /\.tsx$/,
exclude: /node_modules/,
use: {
loader: "ts-loader",
}
},
{
enforce: "pre",
test: /\.js$/,
loader: "source-map-loader"
},
{
test: /\.css$/i,
use: ["style-loader", "css-loader"]
},
]
},
resolve: {
extensions: [".js", ".jsx", ".ts", ".tsx"]
},
plugins: [
new SentryWebpackPlugin({
include: ".",
ignoreFile: ".sentrycliignore",
ignore: ["node_modules", "webpack.config.js"],
configFile: "sentry.properties"
})
]
};
I’m using:
“@sentry/webpack-plugin”: “^1.10.0”,
“source-map-loader”: “^0.2.4”,
“ts-loader”: “^6.2.1”,
“typescript”: “^3.7.5”,
“webpack”: “^4.41.5”,
“webpack-cli”: “^3.3.10”
“@sentry/browser”: “^5.12.4”,
I’ve also noticed that the getting started guide seems to think I’ve not uploaded my source maps…