【发布时间】:2018-08-14 18:54:40
【问题描述】:
在我运行测试 (npm test) 的一半时间里,我得到了以下堆栈跟踪,这非常具有误导性。知道如何解决这个问题吗?
/node_modules/raven/lib/client.js:217
kwargs.user = extend({}, this._globalContext.user, domainContext.user, kwargs.user);
^
TypeError: Cannot read property 'user' of undefined
at Raven.process (..node_modules/raven/lib/client.js:217:50)
at ..node_modules/raven/lib/client.js:375:12
at ..node_modules/raven/lib/parsers.js:55:5
at ..node_modules/raven/lib/utils.js:259:5
at ..node_modules/raven/lib/utils.js:169:35
at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)
【问题讨论】:
-
Sentry 有一个新的 JS 客户端,你能看看那里是否出现同样的问题吗? github.com/getsentry/sentry-javascript