-
Notifications
You must be signed in to change notification settings - Fork 199
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
Vulcanized file doesn't work in Firefox "ReferenceError: Polymer is not defined" #1818
Comments
Tested with: |
Tried the same example in Firefox and IE11, it's a bug indeed. |
Workaround seems to be wrapping the code in "WebComponentsReady" listener <script>
window.addEventListener("WebComponentsReady", function(){
console.log("ready");
Polymer({
is: "ff-test"
});
});
</script> |
I can confirm this, see #231 |
The example works with the "WebComponentsReady" listener, thanks :). |
Found out that using crisper avoids this problem. |
Looks like a polymer change. Bisected to Polymer/polymer@051e1bf |
This also breaks safari, and I image every browser that isn't chrome. |
Multiple elements depend on dom-module.import and may register before dom-module is registered. With the forceUpgraded check, only the first module to call .import will be upgraded, typically custom-style. This will break the subsiquent elements, such as dom-template. Fixes Polymer/vulcanize#234
Multiple elements depend on dom-module.import and may register before dom-module is registered. With the forceUpgraded check, only the first module to call .import will be upgraded, typically custom-style. This will break the subsiquent elements, such as dom-template. Fixes Polymer/vulcanize#234
@azakus I'm still getting this issue in FireFox version 47.0 and Polymer 1.6.1. Was the fix incorporated into Polymer? Or are we supposed to just wrap our code in a |
Still same issue in FIrefox 49.0.2 with Polymer 1.7.0, as well as the same issue happens in Microsoft Edge. |
Same issue in FIrefox 51.0.1 with Polymer 1.7.0. Really thinking to abandon Polymer and passing to Angular 2 It is a too unpredictable library... |
Got trouble to get a vulcanized polymer project running in firefox.
The page is total empty in Firefox and i get these error:
"ReferenceError: Polymer is not defined"
I striped it down to these examples:
Test element ff-test.html:
Not Vulcanized test file (works in Chrome and Firefox)
Vulcanized test file (works only in Chrome, not in Firefox)
I get the same problem when webcomponents-lite.min.js and polymer.html are also inline.
The text was updated successfully, but these errors were encountered: