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.

Help using in Universal/Isomorphic app

See original GitHub issue

Hi, I’m working in a project based on next.js, a universal framework to build apps, and I appreciate some help/ideas to solve a problem.

I use express too, with the raven-node client, but for the “client” app I need raven-js, the problem is due the framework is universal it also does server-side-rendering of my components. The problem is if an error ocurrs while SSR raven-js fails due XMLHttpRequest is not defined.

Does has it sense to change the whatwg-fetchto isomorphic-fetch so it works universally?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

9reactions
ismaycommented, Feb 22, 2021

Well I’m not exactly sure what you’re running into, but here’s what I’m doing (which I think would work in your situation as well):

  • [repo moved to gitlab]

Error reporting works for me both client and serverside. I haven’t run into the XMLHttpRequest error that you describe. Might be due to isomorphic-fetch, which I am using.

8reactions
Enalmadacommented, Nov 21, 2018

Thank you sentry team for your consideration on this issue. Having isomorphic support would help the massive next.js community become sentry users.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Isomorphic (Universal) JavaScript | by Mehmetcan Gayberi
Isomorphic (Universal) JavaScript can be defined as an intersection of client-side and server-side applications. Isomorphism is a new hybrid ...
Read more >
Chapter 1. Introduction to isomorphic web application ...
An isomorphic app is a web app that blends a server-rendered web app with a single-page application. On the one hand, we want...
Read more >
Isomorphism vs Universal JavaScript
A utility library such as Lodash is “universal”, but has nothing to do with isomorphism. Sharing code between environments does not give you...
Read more >
What is an isomorphic application? - Stack Overflow
Isomorphic /universal code is code that runs on both the client (browser) ... I use build tools (like webpack) to then help create...
Read more >
What is Isomorphic React? How Does it Help with Search ...
With respect to Isomorphic React this term means that the web app is made of code that can be rendered on both server...
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