ssr-create-react-app-v2 icon indicating copy to clipboard operation
ssr-create-react-app-v2 copied to clipboard

{{SSR}} does not replace

Open vadamk opened this issue 8 years ago • 6 comments
trafficstars

vadamk avatar Sep 02 '17 23:09 vadamk

I have the same issue. {{SSR}} is not replaced on server render, seems server render is not working.

torabian avatar Sep 08 '17 09:09 torabian

I had the same problem ({{SSR}} showing), and it was caused because the Service-Worker cached the file it got directly requesting /index.html, that express.static served without replacing the Placeholders. Subsequent page loads would hit this SW Cache with the {{SSR}}.

You could verify that you have the same problem by disabling/bypassing the SW cache (Ctrl+F5).

I solved this by adding the SW requested route that simply removes all placeholders: https://github.com/dieMAYREI/ssr-pwa-react-app/commit/8e6520948a890785da1cb5e4b5141a7144ba4f90

kronthto avatar Sep 08 '17 10:09 kronthto

im seeing {{SSR}} too. anyone have a solution for this? @kronthto your solution not working for me

mohdhazwan avatar Oct 12 '17 06:10 mohdhazwan

@mohdhazwan If you start your app with npm start you will see {{SSR}}, it is impossible now to have ssr in development mode with create-react-app

bondom avatar Nov 20 '17 19:11 bondom

@mohdhazwan you have to run npm run now-start instead of npm run start:server

maximalism2 avatar Feb 21 '18 19:02 maximalism2

Still seeing {{SSR}} in the markup even after running npm run now-start

kenshinman avatar Aug 04 '18 22:08 kenshinman