-
Notifications
You must be signed in to change notification settings - Fork 200
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
<!--! do not remove --> inserted by polymer build / polymer serve causes warning in IE11, and result in blank polymer-2-starter-kit #2465
Comments
Please help with this, as far as I can tell Polymer 2 does not work at all with ie11 after being built. I removed the line
After building and the original error was gone, but a different error popped up complaining about an unexpected end of file, and the page still did not display in the browser. Also, I am getting the same error messages and problems in EDGE. |
I was able to reproduce this as well. Although, I believe this issue would be better off being in the PSK repository. Versions & Environment
Steps to Reproduce
Expected ResultsApp loads successfully in all supported browsers Actual ResultsApp fails to load in IE11. Also, throws warnings in IE and Edge. Browsers Affected
Console Output |
Hmm, okay we'll need to make time to dig in to why this is happening. |
Just updated bundler to preserve |
Not even a quick workaround, just for the time being??? |
@andreabioli - I was able to get my page to work after a few hours of fiddling with things but unfortunately I don't remember exactly what I did. Sorry, and good luck. I know I tried straight up editing the index file and couldn't get things working, tried using different versions of webcomponentsjs and didn't have any success. Then I uninstalled polymer-cli completely. Installed the newest version of polymer-bundler and then reinstalled polymer-cli. I think I also made some changes to the index file and my-app file but I'm not sure which of those changes were related to getting things working again. As a side note, this kind of timeline on bugs which break Polymer-Cli on windows or IE/Edge really has me hesitant to ever upgrade after finding a working version and worried about the future use of polymer at my workplace. |
...your last sentence is really scaring, but I think it's honestly objective. |
I tried reproducing just the comment warning with the following jsbin in IE11, but couldn't: https://jsbin.com/kiditugizo/edit?html,output And from reading this page: https://msdn.microsoft.com/en-us/library/hh180764(v=vs.85).aspx I don't think that warning should break the page. It might be two different things. |
@justinfagnani I was noticing it today still on |
@andreabioli - It's not all that doom and gloom. For the most part versions between components work extremely well. The only issue I've seen has been updates/releases to new dev/build tools tend to have more bugs (sometimes crippling ones) in Windows OS/browsers. Polymer library and polymer components have been solid for the most part. That said, the tools are improving all the time and it's just generally not a good idea to immediately update production build tools so just take best practices and you'll be good. For this issue it was certainly more than just the comment but it was how the build tool output the index file, specifically the section with the es5-custom-adapter. That said, with the latest version of PSK (2.0-preview), version 1.2 of Polymer-Cli, and 1.5.1 of Polymer-Build I DO NOT see the problem any longer. @stramel - Could you provide versions or code where it is still an issue? |
You are right, sorry for having a moment of bad mood, but in the afternoon I had another big problem just trying to use iron-validator-behavior (still in 'old mode') in Polymer 2: I filed the problem, and I already saw I'm not the only one... These things don't help to consider the whole approach in a very positive way, but I'm confident that you can progress through all of this! :-) |
Just checked with polymer-cli 1.2 on a Windows system and IE11; still having the same issue, so for me it is not resolved yet. (Also tried building using git bash). Sadly IE11 still must be supported so this is really a showstopper. Hope you are able to figure out what's going wrong, good luck!
Regards, Rob
Update: I did notice that the polymer-2-application (the simple template) DOES work in IE11.
|
@rpapeters I'd check your version of polymer-build and download a fresh psk preview 2. Hopefully you'll notice one of those has been updated and it'll narrow down where your issue is. Good luck |
I made further tests. SCRIPT438: Object doesn't support property or method 'call' That are probably the real responsible for NOT showing the page at all, in the end... |
I too have the same issue you can see it at https://www.bkawk.com |
I can add even more: The class defined in CustomElementInternals.js is CustomElementRegistry, that at this page, https://developer.mozilla.org/en-US/docs/Web/API/CustomElementRegistry, is said to be NOT supported in Internet Explorer. |
Now I tried to jump over the offending line (CustomElementRegistry.js, line 142, this._internals.patchAndUpgradeTree(document);), and now I have no errors, only the warnings, but the page is totally blank, it looks like Polymer is not initialized at all... |
...and if we run the validator on bkawk page: |
What worries me is this: nobody in the world can deliver at the moment a Polymer 2 application that works on IE??? |
I feel your pain. We had to convince the customer to use an alternative browser while IE is their standard. Luckily for us they where prepared to do so, but this is NOT a good selling point... In a business perspective, the Polymer team should be on top of this, because (I think) many companies are still using (the crappy) IE browser. Although I really love building Polymer (2) apps and strongly believe it is the right way to go, I can't say it should be marked as production ready untill the IE problem is fixed. So, go go Polymer team! Keep up the good work!
Regards, Rob Peters
|
For me it's just a no point: I pushed to use Polymer, in this application, that will be run all over the world. Big numbers, in this, I cannot ask such a big company to make such a move (change browser!) just because of my (small) application... :-((( |
I agree with @cgriffin4 and @andreabioli. This issue is blocking an app launch for my client, which is costing me time/money/reputation. And yeah, I saved IE testing till the end, which was a misstep, but Polymer says it supports IE11+, so I was overly confident that any IE-specific issues would be minor; not something like the entire app failing to load. I can’t even get things to work by side-stepping the cli with a custom gulp build that basically just does crisper and babel. It looks like I’m going to have to spend time downgrading the app to Polymer 1.9, since a previous 1.x project loads fine in IE. This honestly makes me reconsider using the library in production environments. I would expect this kind of error from a beta, but not a 2.0 release. |
Just the same steps I did, @hguiney! :-) I'm still telling the customer 'don't worry, test it in Chrome, and when we go in production we will have the compatibility', but now I must prepare to downgrade to Polymer 1.x... :-( |
I had some hopes when I saw there was a new version of Polymer CLI. |
I FOUND THE PROBLEM!!!
Where the rootPattern variable is initialized like this:
But the URL object is not compatible with IE (11), as we can see from this page: https://caniuse.com/#search=url And it blows up everything, in a very strange way, that's not easy to spot.
Without the variable at all, of course removing the offending line! And it works without any problem, in any browser... Do I deserve a prize, for one full day of tests? :-) P.S.: now I'm curious... Please, could the other users check to see if this solve the problem? |
And in this official page: |
related issue: Polymer/polymer-starter-kit#1020 I'm a bystander in this one, but I'm guessing the version of the PSK which is pulled by the current polymer-cli is not the most up-to-date |
@andreabioli This is already fixed in the latest PSK branches, and will probably be released as soon as A URL polyfill used to be shipped with |
I perfectly understand that errors happen, of course, anytime, anywhere... in this case, whatever the reason, you have to admit that it's really strange, that a whole team released such a giant error, and noone in testing realized this... |
@jsilvermist working on getting documentation, perf profiling, and some fixes into the repo before we merge and tag. Also, I think this should be closed since it IE11 and Edge just warn about the comment. Using the RegExp should fix the failing load on IE11. |
Same here. Discovered this in 1.1.0 already and its still there in 1.3.1. |
Yes, Polymer 1... we were talking about the Polymer 2 starter kit, where you cannot even see the first page, screen in IE remains blank... |
@unionthugface iron-ajax now requires the promise polyfill instead of including it. Check out the iron-ajax repo PolymerElements/iron-ajax#280 |
And This is cli v1.3.1 |
Is there any updates about this ? This is pretty critical and strangely not widely discussed anywhere else. Folks reverting to Polymer 1 ? |
This has been come a catch all issue and should be closed as the root issue has been addressed. The fix for the original issue is to switch from using @FredKSchott @abdonrd @LawrenceMok Can we close this? |
This fix is not yet available in the polymer-cli, or is it? If not, how could we already use this polymer-starter-kit fix inside polymer-cli?
|
|
@stramel @rpapeters The problem is solved, but now we have to wait for a new PSK release. The Polymer CLI doesn't need to be updated, because it takes the last PSK tag. |
Thx for the update, glad to hear the problem should be solved! Can’t we manually override the PSK tag that polymer-cli uses? Or manually install a different PSK version and let polymer-cli use that specific version?
|
@rpapeters you can download the PSK 2.0-preview branch. |
Sorry for asking, which folder should the files go to, so polymer-cli wil make use of it? Somewhere into the node_modules?
|
@rpapeters No, I mean direct download: https://github.com/PolymerElements/polymer-starter-kit/archive/2.0-preview.zip Instead of:
|
Ok, clear. Thx!
Update:
'polymer serve' is working!
'polymer build --preset es5-bundled' is not working...
![image](https://user-images.githubusercontent.com/3110138/28613549-f0891906-71f2-11e7-9510-29fae65b3017.png)
Update2:
'polymer build --js-compile --js-minify --css-minify --bundle --add-service-worker' IS WORKING!
I think --html-minify is breaking the build at the moment, because when I add that parameter it is not working.
|
No luck in getting it serve without any issue on IE11. Edge was fine. |
Hooray! |
Awesome!
|
Still getting this issue in IE11 11.540.15063.0 |
Same here, updated to the latest Polymer CLI, created a fresh PSK 2 with PRPL pattern. Built to es5-bundled, and pushed it to a firebase hosting with firebase-tools. Runs fine in chrome/firefox, but IE and Edge doesnt load. IE loads the app shell sometimes, but also takes a really long time before even showing anything. |
If it helps, the exclamation mark warning issue is not with the <script>
if (!window.customElements) {
document.write('<!--');
}
</script>
<!--! do not remove --> In the case that <!-- <!--! do not remove --> (even the syntax highlighter isn't happy about it) That comment-inside-a-comment violates §8.1.6(2) of the HTML5 Specification:
Here are three pages on Glitch demonstrating the different parts of the problem:
It seems IE variants emit a warning, but Chrome stays silent. (even when it's hardcoded, as in example 3, above) |
If it can use Javascript to insert the opening comment, is there a reason it can't just use the Javascript to insert the entire |
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. |
what I did:
polymer init
select polymer-2-starter-kit
polymer serve
open the site in IE11, got a completely blank page, console shows these warnings:
HTML1414: Unexpected character: U+0021 EXCLAMATION MARK (!)
127.0.0.1:8081 (67,9)
HTML1416: Unexpected character in comment end. Expected "-->".
127.0.0.1:8081 (67,10)
Also after around 10 seconds, got this error:
SCRIPT445: Object doesn't support this action
CustomElementInternals.js (255,7)
view source showing line 67 as:
<!--! do not remove -->
which should be inserted by polymer build / polymer serve
The text was updated successfully, but these errors were encountered: