nativescript-sentry
nativescript-sentry copied to clipboard
Function calls are not supported in decorators but 'SentryModule' was called.
I get this error when building for prod:
ERROR in Error during template compile of 'AppModule'
Function calls are not supported in decorators but 'SentryModule' was called.
However during dev there's no problem.
My code in app.module.ts
import {SentryModule} from 'nativescript-sentry/angular';
@NgModule({
imports: [
SentryModule.forRoot({dsn: 'https://...'}),
],
})
@goyote just published 1.8.1 with rc tag, can you try it out ? thanks
humm ok will take a deeper look and report back
By the way this only happens when using aot tns run ios --bundle --env.uglify --env.aot
Hi @dottodot and @goyote i think it's fixed, can you check with tns plugin add [email protected] ?
OK so aot is working now but I get error when using Sentry.captureException(error) that's regardless of aot or not
null is not an object (evaluating 'SentryClient.sharedClient.sendEventWithCompletionHandler')
Strange i got no errors while i was testing, will do more tests to see if i can sort it out, thanks ;)
Hi @dottodot i can't reproduce it, can you send a longer stacktrace or a test case?
OK I've found the cause of the issue. It was because I'd add my own custom error handler not realising you'd already done that. So for some reason doing that causes the error.
it shouldn't do that, humm will investigate further, thanks ;) will release this in the coming days ;)