【发布时间】:2018-08-10 21:39:17
【问题描述】:
我对 sentry webpack 插件 https://github.com/getsentry/sentry-webpack-plugin 有疑问...我已经阅读了手册并尝试了很多东西,但无法弄清楚出了什么问题...但是,我使用的是 webpack 3... 每次我收到此错误
./node_modules/@sentry/cli/sentry-cli 发布新的 1520006165 错误: 需要一个组织 slug(提供 --org)
但是组织、项目、令牌是通过包含所有必需数据的 sentry.properties 文件提供给 SentryCliPlugin... https://docs.sentry.io/clients/java/config/#configuration-via-properties-file
new SentryCliPlugin({
release: process.env.LAST_BUILD_TIME,
configFile: process.env.SENTRY_PROPERTIES_FILE,
include: './app/dist'
})
sentry.properties 文件(添加)
[defaults]
url=https://sentry.io/
org=<YourOrgShortname>
project=<YourProjectShortname>
[auth]
token=<YourToken>
感谢您的帮助!
编辑
我已经在 github repo 上打开了 issue... 这是包相关的问题。 https://github.com/getsentry/sentry-webpack-plugin/issues/34
【问题讨论】: