Skip to content
This repository has been archived by the owner on Sep 20, 2019. It is now read-only.

Firefox: a.__shady is undefined #811

Closed
malte-laukoetter opened this issue Jul 17, 2017 · 6 comments · Fixed by #815
Closed

Firefox: a.__shady is undefined #811

malte-laukoetter opened this issue Jul 17, 2017 · 6 comments · Fixed by #815

Comments

@malte-laukoetter
Copy link

malte-laukoetter commented Jul 17, 2017

In the newest release (1.0.2) i get the following error in firefox while in version 1.0.1 everything is working:

TypeError: a.__shady is undefined[Learn More]  webcomponents-hi-sd-ce.js:55:218
	Rb http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:55:218
	La http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:53:152
	insertBefore http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:116:445
	Xc/< http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:36:211
	r http://localhost:8081/bower_components/polymer/lib/mixins/element-mixin.html.js:1:2463
	_initializeProperties http://localhost:8081/bower_components/polymer/lib/mixins/element-mixin.html.js:1:3692
	_initializeProperties http://localhost:8081/bower_components/polymer/lib/legacy/legacy-element-mixin.html.js:1:761
	Polymer.PropertyAccessors</< http://localhost:8081/bower_components/polymer/lib/mixins/property-accessors.html.js:1:725
	<anonymous> http://localhost:8081/bower_components/polymer/lib/mixins/template-stamp.html.js:795:19
	le http://localhost:8081/bower_components/polymer/lib/mixins/property-effects.html.js:795:19
	v http://localhost:8081/bower_components/polymer/lib/mixins/element-mixin.html.js:795:19
	<anonymous> http://localhost:8081/bower_components/polymer/lib/mixins/gesture-event-listeners.html.js:795:19
	f http://localhost:8081/bower_components/polymer/lib/legacy/legacy-element-mixin.html.js:1:243
	m http://localhost:8081/bower_components/polymer/lib/legacy/class.html.js:795:19
	m http://localhost:8081/bower_components/polymer/lib/legacy/class.html.js:795:19
	m http://localhost:8081/bower_components/polymer/lib/legacy/class.html.js:795:19
	v.prototype.s http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:124:32
	v.prototype.c http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:123:378
	Yc/< http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:39:91
	_stampTemplate http://localhost:8081/bower_components/polymer/lib/mixins/template-stamp.html.js:1:2942
	_stampTemplate http://localhost:8081/bower_components/polymer/lib/mixins/property-effects.html.js:1:16143
	ready http://localhost:8081/bower_components/polymer/lib/mixins/element-mixin.html.js:1:4205
	_enableProperties http://localhost:8081/bower_components/polymer/lib/mixins/property-accessors.html.js:1:3562
	connectedCallback http://localhost:8081/bower_components/polymer/lib/mixins/element-mixin.html.js:1:4121
	v.prototype.connectedCallback http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:125:22
	v.prototype.s http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:124:407
	v.prototype.c http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:123:378
	q.prototype.j http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:128:297
	q.prototype.define/< http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:128:233
	q/this.g http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:41:486
	q.prototype.l/this.g/< http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:129:257
	d http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:164:365
	b.whenReady/< http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:164:482
	f/</< http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:79:399
	d/</< http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:79:146
	c http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:80:108
	h http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:61:356
	dispatchEvent http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:118:92
	k.prototype.g http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:90:312
	k.prototype.j/< http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:90:203
	l http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:81:37
	k.prototype.j http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:90:180
	d http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:87:312
	k.prototype.i/< http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:87:373
	b http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:88:401
	b/< http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:88:387
	c http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:80:108
	h http://localhost:8081/bower_components/webcomponentsjs/webcomponents-hi-sd-ce.js:61:356
@wlschnee
Copy link

I'm continuing to see this same issue in the newest release (1.0.3).

@fooloomanzoo
Copy link

fooloomanzoo commented Jul 19, 2017

Same issue for me in Firefox. Seems to be related to #809

vlukashov pushed a commit to vaadin/board that referenced this issue Jul 20, 2017
The latest version of the WebComponents polyfills has a bug which makes vaadin-board unusable in Firefox and IE11. Until the bug is fixed, the version of webcomponentsjs polyfills used to build the the precompiled vaadin board package has to be pinned (to avoid using the latest). The version of polymer is pinned as well but only because the latest version of polymer requires the latest version of webcomponentsjs.

 WebComponents polyfills issue: webcomponents/webcomponentsjs#811
alvarezguille pushed a commit to vaadin/board that referenced this issue Jul 20, 2017
…#110)

The latest version of the WebComponents polyfills has a bug which makes vaadin-board unusable in Firefox and IE11. Until the bug is fixed, the version of webcomponentsjs polyfills used to build the the precompiled vaadin board package has to be pinned (to avoid using the latest). The version of polymer is pinned as well but only because the latest version of polymer requires the latest version of webcomponentsjs.

 WebComponents polyfills issue: webcomponents/webcomponentsjs#811
@anirban-dutta
Copy link

It worked for me the preset bundled build, after disabling MINIFY for html for Firefox. Chrome it was working fine.Problem faced by me even with the Polymer 2 starter kit.
Sample:
{
"name": "bundled-es6",
"preset": "es6-bundled",
"html": {"minify": false}
}

@sorvell
Copy link
Contributor

sorvell commented Jul 26, 2017

We were hoping that 1.0.3 would address this issue but apparently it has not. We'll be looking into and fixing this asap.

@firstor
Copy link

firstor commented Jul 26, 2017

@anirban-dutta Your workaround seems work fine on my side, but not working 100% case. The problem disappeared on Firefox and Edge once I adopted your workaround, but I got another problem on IE 11. Here is the browser console outputs: (just like as #518)

SCRIPT5007: Unable to get property 'replaceChild' of undefined or null reference
SCRIPT5022: A custom element with name 'dom-module' has already been defined.
SCRIPT5022: A custom element with name 'dom-bind' has already been defined.
SCRIPT5022: A custom element with name 'dom-repeat' has already been defined.
SCRIPT5022: A custom element with name 'dom-if' has already been defined.
SCRIPT5022: A custom element with name 'array-selector' has already been defined.
SCRIPT5022: A custom element with name 'custom-style' has already been defined.
...

Do you have any idea of how to solve this problem?

@shawnd
Copy link

shawnd commented Jul 26, 2017

To add to @First87's comment, the errors related to custom elements being already defined do not appear when "bundle": false

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

Successfully merging a pull request may close this issue.

7 participants