Mod.require is not a function - electron using 0.13.0


#1

I am trying to fix my sourcemaps with electron. In this process, I updated sentry to the latest version. As of this latest version, I am receiving following error. (Also using electron 3.0.6 & typescript 3.1.3) There is a similar issue on github for this, which is still open. https://github.com/getsentry/sentry-electron/issues/92

Is there something wrong with my setup? Or with the module.

`TypeError: mod.require is not a function
at Object.dynamicRequire (webpack:///./node_modules/@sentry/utils/misc.js?:10:16)
at Object.specificInit (webpack:///./node_modules/@sentry/electron/dist/dispatch.js?:129:41)
at Object.init (webpack:///./node_modules/@sentry/electron/dist/sdk.js?:52:16)
at eval (webpack:///./src/common/sentryReporter.ts?:29:12)
at Object../src/common/sentryReporter.ts (/Users/jonassnellinckx/Projects/Personal/Auryo/auryo-app/dist/main.js:13704:1)
at __webpack_require__ (/Users/jonassnellinckx/Projects/Personal/Auryo/auryo-app/dist/main.js:21:30)
at eval (webpack:///./src/main/index.ts?:2:80)
at Module../src/main/index.ts (/Users/jonassnellinckx/Projects/Personal/Auryo/auryo-app/dist/main.js:14448:1)
at __webpack_require__ (/Users/jonassnellinckx/Projects/Personal/Auryo/auryo-app/dist/main.js:21:30)
at /Users/jonassnellinckx/Projects/Personal/Auryo/auryo-app/dist/main.js:85:18`