gatsby-plugin-sentry icon indicating copy to clipboard operation
gatsby-plugin-sentry copied to clipboard

Error 'Sentry' is not defined no-undef

Open MatteoGioioso opened this issue 5 years ago • 5 comments

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,

MatteoGioioso avatar May 12 '19 03:05 MatteoGioioso

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 avatar Jul 19 '19 17:07 jmz7v

@jmz7v as this package did not work at that time, I went for a classic approach and place Sentry report into ErrorBoundary

MatteoGioioso avatar Jul 22 '19 00:07 MatteoGioioso

Thank you @MatteoGioioso!

Will do the same.

jmz7v avatar Jul 22 '19 06:07 jmz7v

just want to bump this issue as currently the setup instructions on gatsbyjs.org are not working

ngehlert avatar Sep 08 '19 13:09 ngehlert

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

ngehlert avatar Sep 08 '19 19:09 ngehlert