gatsby-plugin-sentry
gatsby-plugin-sentry copied to clipboard
Error 'Sentry' is not defined no-undef
I have followed the instructions and I got this error Error 'Sentry' is not defined no-undef
Gatsby: 2.2.9
,
React: 16.8.5
,
Gatsby-sentry: 1.0.1
,
Node: 10.15.3
,
Hi @MatteoGioioso, my company's site just broke because of this.
Were you able to fix this or did you went back to a traditional Sentry setup?
@jmz7v as this package did not work at that time, I went for a classic approach and place Sentry report into ErrorBoundary
Thank you @MatteoGioioso!
Will do the same.
just want to bump this issue as currently the setup instructions on gatsbyjs.org are not working
ok found a solution, if in the future someone stumbles upon this thread :)
the problem is only the eslint rule of no-undef
You just manually need to add Sentry with
/*global Sentry*/
https://eslint.org/docs/rules/no-undef
@jmz7v @MatteoGioioso