Help using in Universal/Isomorphic app
See original GitHub issueHi, 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-fetch
to isomorphic-fetch
so it works universally?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:9
- Comments:14 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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):
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.
Thank you sentry team for your consideration on this issue. Having isomorphic support would help the massive next.js community become sentry users.