NullYing

Results 78 comments of NullYing

还有一个问题,这个包不支持原生开发的小程序?

不支持就没辙了,目前接触的小程序都是原生开发的

``` thirdScriptError sdk uncaught third Error regeneratorRuntime is not defined ReferenceError: regeneratorRuntime is not defined at http://127.0.0.1:23719/appservice/sentry-mina.js:1232:35 at http://127.0.0.1:23719/appservice/sentry-mina.js:1311:10 at Object.defineProperty.value (http://127.0.0.1:23719/appservice/sentry-mina.js:1346:6) at n (http://127.0.0.1:23719/appservice/sentry-mina.js:10:93) at Object.defineProperty.value (http://127.0.0.1:23719/appservice/sentry-mina.js:1193:20) at n...

跑起来了,缺了regeneratorRuntime,引入了就可以了 在sentry-mina.js前面加一行 const regeneratorRuntime = require('./utils/regenerator-runtime/runtime.js') 对应的文件在这里下载 https://github.com/facebook/regenerator/blob/master/packages/regenerator-runtime/runtime.js 删除掉runtime.js中这部分 ```js try { regeneratorRuntime = runtime; } catch (accidentalStrictMode) { // This module should not be running in strict mode, so...

> 赞,你发个 Pull Request 吧 稍等... 在折腾source-map,有什么诀窍吗?map文件你是用uglifyjs命令生成的还是直接到哪里拿? 我文件已经上传到sentry然而不认 之前我折腾vue的source-map成功过

还有一个,最新的开发工具带有增强编译的选项,打开后就能支持了,不会缺regeneratorRuntime,使用这个方法会更好一点 https://developers.weixin.qq.com/community/develop/doc/00066877c54eb0ff5488b54885b801?highLine=uglify

![image](https://user-images.githubusercontent.com/10618381/59075935-e6b56480-8905-11e9-98dc-db5b110f5269.png) 按理来说路径应该可以通过配置来解决

> https://docs.sentry.io/platforms/javascript/sourcemaps/ > > 你有按 sentry 官方的文档进行操作吗 是的,我之前用vue是成功的,我怀疑是map文件的问题

> 在小程序中获得的异常抛出的文件地址是错误的 我成功上传了app.js和app.js.map,sentry也认了map文件,不过错误行数是不正确的

![image](https://user-images.githubusercontent.com/10618381/59091785-a7593900-8942-11e9-9b94-1ecdca5a8dc2.png) 实际错误位置在34行 ![image](https://user-images.githubusercontent.com/10618381/59092176-82b19100-8943-11e9-8f81-6cbf009562c8.png)