Pages are Client Side Rendering #29478
-
DescriptionMy post pages like CSR, no content without open browser (only Steps to reproduceI use curl for reproduce. Like This page works: https://ulasimsaati.online/c/istanbul-iett Expected resulttags in head and content in body. Actual resultOnly responsed in body: <body>
<div id="___gatsby"><div style="outline:none" tabindex="-1" id="gatsby-focus-wrapper"></div>
<div id="gatsby-announcer" style="position:absolute;top:0;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0, 0, 0, 0);white-space:nowrap;border:0" aria-live="assertive" aria-atomic="true">
</div>
</div>
<script id="gatsby-script-loader">/*<![CDATA[*/window.pagePath="/p/10-uckuyular-iskele-konak-otobus-hatti-hareket-saatleri";/*]]>*/</script><script id="gatsby-chunk-mapping">/*<![CDATA[*/window.___chunkMapping={"polyfill":["/polyfill-64a2a5ba1fc84f7adec6.js"],"app":["/app-e876b36d5e17f5afd208.js"],"component---cache-caches-gatsby-plugin-offline-app-shell-js":["/component---cache-caches-gatsby-plugin-offline-app-shell-js-ad6431e4664bcf916d19.js"],"component---src-pages-404-js":["/component---src-pages-404-js-7bd95d465f00aef1fee7.js"],"component---src-pages-ara-js":["/component---src-pages-ara-js-0e631b79654e1fee8a44.js"],"component---src-pages-category-js":["/component---src-pages-category-js-cdee42fe1116e7dc552c.js"],"component---src-pages-hakkimizda-js":["/component---src-pages-hakkimizda-js-61979a8daa8ef3dafae2.js"],"component---src-pages-iletisim-js":["/component---src-pages-iletisim-js-50ab1b31b352249b7137.js"],"component---src-pages-index-js":["/component---src-pages-index-js-d08c7cdea9219b85ca5f.js"],"component---src-pages-sitemap-js":["/component---src-pages-sitemap-js-b73b753dcde1413002c8.js"],"component---src-template-category-js":["/component---src-template-category-js-3d0b28642470149c39b3.js"],"component---src-template-content-js":["/component---src-template-content-js-22eb4b0548a5ab5b10c8.js"]};/*]]>*/</script><script src="/polyfill-64a2a5ba1fc84f7adec6.js" nomodule=""></script><script src="/component---src-template-content-js-22eb4b0548a5ab5b10c8.js" async=""></script><script src="/18aebf820960856b0a8c09dc2b9634c1a5413131-ee6a494ec11da6bae6c7.js" async=""></script><script src="/8ee3f836fe807ce8df926d2785fd1642ac15a4dc-249af3364b1892905291.js" async=""></script><script src="/styles-7d4153d260c0197f0043.js" async=""></script><script src="/app-e876b36d5e17f5afd208.js" async=""></script><script src="/framework-fc1db31f678bd7aa66d8.js" async=""></script><script src="/webpack-runtime-c6ac144383c278e349da.js" async=""></script></body> Environment
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
You're using a Service Worker, have you read this? |
Beta Was this translation helpful? Give feedback.
-
I don't see the service worker now but it's probably still running on your machine. To make sure it's removed from everywhere you'll want to add this plugin gatsby-plugin-remove-serviceworker |
Beta Was this translation helpful? Give feedback.
-
Yeah that's as expected — in order to remove an old sw, you have to add a
new one which removes the old one — which is weird I agree 😂
--
Kyle Mathews
Blog: *http://bricolage.io <http://bricolage.io>*
Twitter: http://twitter.com/kylemathews
…On Fri, Feb 12, 2021 at 10:46 AM Eren A. Akyol ***@***.***> wrote:
yes, I added it to the config. But I saw this link still respond worker:
https://ulasimsaati-dl4qeulc3.vercel.app/sw.js
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#29478 (reply in thread)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAARLBYX27DVFNLXRCKPH23S6VZOTANCNFSM4XQ3LQUQ>
.
|
Beta Was this translation helpful? Give feedback.
-
The problem still continues :( |
Beta Was this translation helpful? Give feedback.
-
Hi, I removed these codes, and the problem solved. const ExampleComponent = ({ location }) => { // don't use location prop
if (!location) return "" // remove these line
return <p>{ location.href }</p>
} |
Beta Was this translation helpful? Give feedback.
Hi, I removed these codes, and the problem solved.