-
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
Fetching page as Googlebot displays an error #3205
Comments
I've encountered the same problem when attempting to analyze a static export from Next.js using PageSpeed Insights. |
Also, if I am trying to copy and save all the code from the response (second screenshot) into an HTML file, the googlebot renders it absolutely fine. That is really weird. |
#3181 |
@iamsoorena How to solve this with npm, though? |
the only solution for now : |
probably you should use yarn as a workaround here, I know that it makes a lot of problems itself :D |
I've tried the Yarn resolution suggestion, and that doesn't seem to do the trick. Can't really tell if yarn is actually doing the right thing, as I still see 4.x versions of strip-ansi in there: Any other suggestions or updates on this? |
Closing as we are looking it in a different place. |
What place? |
@DominikLevitsky it's actually fixed in 4.2.1 👍 |
@timneutkens Thank you! |
FYI, the only way I was able to get things working on IE11 (and Google PageSpeed for some odd reason) was the following: Added to
Include this in page head
|
I am still getting this error on next 4.3.0-canary.1 on production. |
I still get this issue for 4.3.0-canary.3 please reopen :( |
You can reproduce this issue by opening next.js webapp in nwjs 0.12 that uses the same engine as googlebot: https://dl.nwjs.io/v0.12.0/nwjs-v0.12.0-osx-x64.zip |
I've created https://github.com/sheerun/targets-webpack-plugin to target this issue Maybe zeit would like to use it in next.js itself for "next build", hm? @timneutkens |
Had issues with Googlebot / Chrome 41 rendering, because of using react-native-web and Apollo. |
Is fetching page as googlebot issue still a problem in Next 7 for anyone? I am curious if most people probably have the issue and don't realize it or if there is some specific dependency that causes this that users could be warned about. Is the remaining cause something that could be solved by nextjs or is it recommended for everyone to use targets-webpack-plugin? |
I've re-checked my app that uses next 7.0.2 and I can confirm that google fails to render it: I cannot provide the source because it's proprietary. I'm pretty sure the error happens when imported code needs some native builtins that are not available in chrome 41. In this case next.js fails to include these in bundles. I think good candidate to check is |
Also it's the node_modules dependency that needs to use it, not the app itself |
@Enalmada @timneutkens I managed to reproduce this error with this repository that uses newest next.js: https://github.com/sheerun/with-apollo The app is available at https://sheerun-with-apollo.now.sh/ though you need to deploy it by yourself if you want to test it with https://www.google.com/webmasters/tools/googlebot-fetch-details The error happens when app imports https://github.com/sheerun/awesome-includes package I've created that uses Could you reopen this issue? |
You can also test with Chrome 41 locally, that's what google uses. |
It's next to impossible to download one :) |
So I'm currently using "next": "^4.1.4", on a nginx server on production. When trying to optimize the website's SEO, I discovered that crawling the pages as googlebot is causing some errors.
As you can see, on the right the page is rendered normally and on the left, some error was displayed. The page response returned looks good, though:
So I am wondering is this an issue with next.js itself or this may be caused by some other elements?
The text was updated successfully, but these errors were encountered: