Skip to content
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

Core-js chrome 41 - .trim() undefined #750

Closed
jcdsr opened this issue Jan 13, 2020 · 2 comments
Closed

Core-js chrome 41 - .trim() undefined #750

jcdsr opened this issue Jan 13, 2020 · 2 comments
Labels

Comments

@jcdsr
Copy link

jcdsr commented Jan 13, 2020

I have an issue with core-js we use angular universal v8 as SSR

We have an issue with google search console, seems search-console uses chrome v41 when testing the url and rendering, and when we load our site the javascript info on the page shows an error with .trim() undefined.

If we have an error on the google search console the page won't be indexed. So this error is critical

We also remove all the .trim() on our project and the error still showing up. So we are struggling to find the solution. Any ideas what the cause? or what do I need to include?

package.json
"core-js": "~3.6.3",

polyfills.ts - we load this
import "core-js/stable";
import 'core-js/es/reflect';
import 'event-source-polyfill/src/eventsource.min.js'
import 'js-polyfills/polyfill.min.js'
import 'web-animations-js';
(window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
(window as any).__zone_symbol__UNPATCHED_EVENTS = ['resize'];
import 'zone.js';

ERROR
image

@zloirock
Copy link
Owner

Are you sure that it's a core-js issue, before core-js it existed and immediately after core-js import it's undefined?

@zloirock
Copy link
Owner

Looking to your stack trace, you try to access .trim of undefined, not a string, so it's not a core-js issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants