question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Googlebot doesn't get Object.assign polyfilled

See original GitHub issue

I ran into this issue that my React app wasn’t being rendered by Googlebot. By using Fetch as Google, I tracked it down to Object.assign not being available in Googlebot, even though I’m using the following polyfill:

https://cdn.polyfill.io/v2/polyfill.min.js?features=default

I tested this with the following code:

<h1>At what point do you stop working, Google?</h1>

{Object.assign && 'We have object.assign! :)'}
{!Object.assign && 'No object.assign available! :('}

Which renders the following in Fetch as Google:

image

Note that the left says “No object.assign available! 😦”.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
triblondoncommented, Jan 12, 2017

Currently we don’t support Googlebot as a browser family. We still recommend using the unknown=polyfill config parameter if you want to polyfill for search crawlers. We would welcome any efforts to either add and maintain a googlebot browser family, or create aliases to the appropriate versions of chrome or webkit. However, I’m aware that Google doesn’t publicly disclose which browser engine version is used by Googlebot, so it is kinda hard to do that.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Object.assign() in IE11 with Angular2 - Stack Overflow
This is what my polyfills.​​ None seems to help and I keep getting Object doesn't support property or method 'assign' in IE11.
Read more >
Googlebot is the new IE - Medium
I learn that googlebot is using chrome 41 for rendering websites and if it encounters not supported syntax without polyfill it won't render ......
Read more >
Polyfill service
UA detected: googlebot/2.1.0 (unknown/unsupported; using policy `unknown=ignore`) ... Object.assign, License: CC0 (required by "default") * - Object.
Read more >
polyfills.js - DAU
node_modules/core-js/modules/_object-assign.js","webpack:///./node_modules/core-js/modules/_object-create.js","webpack:///.
Read more >
How to load polyfills to handle Web Components?
Tagged with webcomponents, javascript, polyfills, frontend. ... OBJECTS. 'assign' in Object &&. 'entries' in Object &&.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found