-
Notifications
You must be signed in to change notification settings - Fork 27.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google Bot fails to render website #3529
Comments
Any luck trying to troubleshoot this issue? |
The first thing you should try is to get Chromium 41 and debug on it. |
This is not related to next.js but to a dependency of your project that's probably using newer javascript syntax. See #3546 as reference |
So, finally figured this one out, and it's not due to a 3-rd party, but due to example code. For us, in the getInitialProps, we check cookies for authentication. Specifically we started using the with-apollo-auth example. Server side with a completely new client, incognito window, or a google bot fetch, this will throw an error. The example does nothing with that error, so it was not obvious it was happening and it only happens once per clean client. Instead the example should be something like:
The reason is that there is no cookies in the initial server side context, but you are also still server side, so "document" is undefined. So, I would suggest that maybe this gets reopened as a request to modify any cookie based examples that may fall into this trap. |
Also to note, this is non-obvious to see testing with chrome 41 or anything else as it still renders the page client side. |
Google Bot is failing to render my website which has been built on top of nextjs. Google bot uses Chrome 41 engine to render the websites it crawls. I have decided to install Chrome 41 to see how I would the see the website. It happens that I see exactly the same as Google Bot sees. I still don't know exactly what is happening but opening the javascript console I can see a 404 error for a resource from nextjs. I was wondering if you could help me understand what is going on. My website is www.imaginando.pt and the page you see below is www.imaginando.pt/products/ubridge and www.imaginando.pt/contact-us
The resource that fails is isPlainObject.js.map
The navigation bar and the images fails to on Google Chrome 41 and on Google bot
The text was updated successfully, but these errors were encountered: