question related to server-side-rendering
See original GitHub issueThis 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:
- Created 6 years ago
- Comments:6
Top 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 >
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 Free
Top 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
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'
toconst Waypoint = require('react-waypoint')
and it worked.I have little Typescript experience so I won’t be able to help you much here unfortunately.
Thank you. It worked. I will learn more about why this happened later. Have a nice day:)