0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

NuxtJS における vue.config.errorHandler と Sentry(nuxt/sentry module) について

Posted at
nuxt.config.json
export default {
  ...(いろいろ),
  vue: {
    config: {
      errorHandler: (err, vm, info) => {
        console.log("Logged in Vue global error handler___________________________", err, vm, info);
      },
    },
  }
}

errorHandler を自前で定義すると、sentry の設定(errorHandler)を上書きしてしまい、Sentry へ情報が送られない、という記事を見ました。
しかし、
NuxtJS + nuxt/sentry (nuxt-module) を使う限りにおいて、上記の記述では問題なく Sentry へエラー情報が送られるようでした。

Sentry は render:errorMiddleware を使っている様です source

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?