question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question/help wanted: how to integrate BugSnag with Electron-Vue?

See original GitHub issue

I already asked this question over at https://github.com/SimulatedGREG/electron-vue/issues/769 without any response to this date, so maybe someone here can point me in to the right direction.

I’m trying to use Bugsnag with Electron-Vue but I always get the following error:

import bugsnag from '@bugsnag/js'
import bugsnagVue from '@bugsnag/plugin-vue'
const bugsnagClient = bugsnag('API_KEY')
bugsnagClient.use(bugsnagVue, Vue)
....\node_modules\@bugsnag\node\dist\bugsnag.js:2138 Uncaught TypeError: setInterval(...).unref is not a function
    at SessionTracker.start (....\node_modules\@bugsnag\node\dist\bugsnag.js:2138)
    at Object.init (....\node_modules\@bugsnag\node\dist\bugsnag.js:2028)
    at BugsnagClient.use (....\node_modules\@bugsnag\node\dist\bugsnag.js:163)
    at ....\node_modules\@bugsnag\node\dist\bugsnag.js:1578
    at Array.forEach (<anonymous>)
    at module.exports (....\node_modules\@bugsnag\node\dist\bugsnag.js:1577)
    at eval (main.js?3b76:3)
    at Object.<anonymous> (renderer.js:1636)
    at __webpack_require__ (renderer.js:680)
    at fn (renderer.js:90)

Should we even still be using the @bugsnag/plugin-vue as it’s now deprecated? https://docs.bugsnag.com/platforms/javascript/vue/

Thanks!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:8 (5 by maintainers)

github_iconTop GitHub Comments

4reactions
bengourleycommented, Jan 8, 2019

You could just provide an empty function to it:

setTimeout(function {}).__proto__.unref = function () {}

There isn’t a bugsnag config file per say, but it sounds like that commenter has created one to hold their configuration.

1reaction
bengourleycommented, Mar 29, 2019

Sorry about that 😄 I wrote it like () => {} and thought I ought to convert to function () {} in case people weren’t familiar with arrow functions and messed it up!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Electron integration guide - Platforms - Bugsnag docs
Start Bugsnag along with any renderer-specific configuration as needed: ... Bugsnag integrates with JavaScript UI frameworks in the renderer via the use of ......
Read more >
Bugsnag docs › Platforms › Electron › Configuration options
Discover configuration options for your Bugsnag Electron integration. Customize your Bugsnag setup to meet your application's unique needs.
Read more >
Vue integration guide - JavaScript - Bugsnag docs
Use the source maps guide to ensure your tooling outputs source maps, and the build integrations guide to find out how to upload...
Read more >
Bugsnag docs › Platforms › JavaScript
JavaScript integration guide. Add Bugsnag to your JavaScript projects to automatically capture and report errors in production.
Read more >
Bugsnag docs › Platforms › JavaScript › Legacy › Vue
Install Bugsnag and the Bugsnag / Vue integration from the npm registry using npm ... If you want control over what is deemed...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found