1.sentry-cli一直安装不成功
windows系统会报network error,webpack sentry plugin也安装不成功。
切换到linux系统运行下面命令就可以了
curl -sL https://sentry.io/get-cli/ | bash
参考:https://github.com/getsentry/sentry-cli
2.sentry-cli login 输入token报错
xdg-open: no method available for opening 'https://sentry.io/api/'
官方文档的说明:
By default sentry-cli will connect to sentry.io but for on-premise you can also sign in elsewhere:
$ sentry-cli --url http://172.31.1.22:8081/ login
就不会报错
Valid token for user xjinza@hotmail.com
Stored token in /root/.sentryclirc
输入vi .sentryclirc,可以看到.sentryclirc的配置信息。
3.@sentry/webpack-plugin 报../dist 文件不存在
new SentryPlugin({
release: process.env.RELEASE,
include: '../dist',
ignore: ['node_modules', 'webpack.config.js']
})
include路径是相对于当前命令所在的目录,而不是webpack.conf.js所在的目录
网友评论