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 related to server-side-rendering

See original GitHub issue

This project seems to support SSR since 095ca90 . But in my project when I render waypoint the error will occur:

TypeError: Cannot read property 'toLowerCase' of undefined
at ReactDOMServerRenderer.renderDOM
at ReactDOMServerRenderer.render
at ReactDOMServerRenderer.read
at Object.renderToString

I am trying to do server side rendering with the help of razzle. My environment is react v16.0.0 react-waypoint v7…3.1 typescript v2.3.4

I have used the correct import way

import Waypoint from 'react-waypoint'

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6

github_iconTop GitHub Comments

2reactions
trotzigcommented, Oct 31, 2017

I checked it out locally and saw the same issue. I don’t know what part of the build process the exports get messed up, but I tried changing import Waypoint from 'react-waypoint' to const Waypoint = require('react-waypoint') and it worked.

I have little Typescript experience so I won’t be able to help you much here unfortunately.

0reactions
begoatcommented, Oct 31, 2017

Thank you. It worked. I will learn more about why this happened later. Have a nice day:)

Read more comments on GitHub >

github_iconTop Results From Across the Web

20 Server-side Interview Questions and Answers - CLIMB
1. What do you understand by the term 'server-side'? · 2. Can you explain what server-side scripting is? · 3. Is there a...
Read more >
20 ReactJS Questions and Answers (Part 2) - Medium
11. What is ReactDOMServer? The ReactDOMServer object enables you to render components to static markup(typically used on node server). This object is mainly ......
Read more >
Top 50 React Interview Questions and Answers in 2023
1) Render Prop Pattern · 2) Fiber Reconciller · 3) Whats better Redux vs Mobx vs Flow · 4) Redux Sagas / Observables...
Read more >
Server-side rendering: What SEOs need to understand
Server-side rendering (SSR) is the process of rendering your web pages through your own servers. In client-side rendering (CSR), ...
Read more >
Top 40 ReactJS Interview Questions and Answers for 2023
ReactJS Interview Questions on Components · 19. What are the components in React? · 20. What is the use of render() in React?...
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