Hi, I wanted to know about error reporting tools u...
# javascript
g
Hi, I wanted to know about error reporting tools used js applications. I've checked on sentry so far but couldn't manage to run a test crash on a mpp project(where one module targets js - browser)
Not sure what the issue with sentry is I've defined an external fun to call the sdk's init function to initialize and run a test crash, but no reports appear on the dashboard or any errors in the browser console. (Does this need some webpack configuration?) Sentry.kt
Copy code
@file:JsModule("@sentry/browser")

package com.fabhotels.alfred.web.external

import org.w3c.dom.events.Event
import kotlin.js.Json

/**
 * Created by Gurupad Mamadapur on 27/08/20.
 */

external fun init(options: dynamic = definedExternally)
index.kt
Copy code
fun main() {

    // Init sentry
    init(jsObject { "dsn" to "xyz" })
       
    throw RuntimeException("Agh, call an ambulance")

}