-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Polymer 1.x application doesn't work with Chrome v80 #5626
Comments
Hello, andryaucar... put the polyfills and if you use Raven.js - Sentry SDK for JavaScript use a condicional to test raven is loaded.. for me works!!! |
My project have polyfills.ts as below;
And I don't use Raven.js. The problem still continues. |
@andriyaucar what errors are you seeing? And is there an application URL you can share, or is this an internal app? |
I see below errors on console;
Yes it is internal app. |
And I see below warnings as well;
|
hi @andriyaucar, my Polymer projects are using this soluctions: <script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
<script src="bower_components/webcomponentsjs/CustomElements.min.js"></script>
<script src="bower_components/webcomponentsjs/HTMLImports.min.js"></script> and <script>
// Setup Polymer options
window.Polymer = {
lazyRegister: true,
passiveTouchGestures: true
};
// Load webcomponentsjs polyfill if browser does not support native Web Components
(function() {
'use strict';
var onload = function() {
// For native Imports, manually fire WebComponentsReady so user code
// can use the same code path for native and polyfill'd imports.
if (!window.HTMLImports) {
document.dispatchEvent(
new CustomEvent('WebComponentsReady', {bubbles: true})
);
}
};
var webComponentsSupported = (
'registerElement' in document
&& 'import' in document.createElement('link')
&& 'content' in document.createElement('template')
);
if (!webComponentsSupported) {
var script = document.createElement('script');
script.async = true;
script.src = '/bower_components/webcomponentsjs/webcomponents-lite.min.js';
script.onload = onload;
document.head.appendChild(script);
} else {
onload();
}
})();
// Workaround due to an issue on older versions of IE11 running on W10
if (!window.location.origin) {
window.location.origin = window.location.protocol + '//' + window.location.hostname + (window.location.port ? ':' + window.location.port: '');
}
</script> and my bower.json has this dependencie {
"webcomponentsjs": "^0.7.24"
} |
I am also having the same issue with an internal app. The application is build on Angular 1.5 As per the site but adding or removing this script does not have any effect on the UI. Kindly help |
Hi @andriyaucar ... Hope you have resolved this. If not, there are a few suggestions here: #5633 (comment) |
I tried to all suggestions that in issue. I have not resolved it. I did some workarounds unfortunately. |
@arthurevans Even I am facing same issue for my internal project which uses Polymerjs1. I have loaded webcomponents-lite.min.js as suggested in https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade#load-the-v0-polyfills. But it still does not work. DO you know any workaround? |
The issue is fixed for me now. Check the path for webcomponents and add
them in correct place.
…On Thu, 16 Apr, 2020, 8:24 pm diksha0291, ***@***.***> wrote:
Hi Andriya
Even I am facing same issue for my internal project which uses Polymerjs1.
I have loaded webcomponents-lite.min.js as suggested in
https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade#load-the-v0-polyfills.
But it still does not work.
DO you know any workaround?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#5626 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AOUIQWFLBVF32IWELINWLJDRM4LZPANCNFSM4KSNNZ5Q>
.
|
I have added correct path and it is giving below errors now Uncaught TypeError: flags.log.split is not a function Webcomponent file is not able to load any imports |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Description
I have Angular 5.x project. It works fine with Chrome 79. But after Chrome 80 version update, lots of errors occured. I did instructions in https://developers.google.com/web/updates/2019/07/web-components-time-to-upgrade but it still doesn't work. Do you have any comment or recommendation?
Browsers Affected
Versions
And I used
The text was updated successfully, but these errors were encountered: