-
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
SyntaxError in IE/FF/Safari (not in Chrome) for webcomponents-lite.min.js #3882
Comments
Since Chrome does not require the polyfill, it will not try to load it. However, the other browsers are loading the polyfill which falls back to the index.html. Since the script was loaded and expects a javascript file as response, but instead encounters html content, it throws the SyntaxError. |
Thank you Tim. I assumed 'polymer build' included the polyfill in the build. Am I correct or is there a step I am missing to ensure compatibility with other browsers. |
@haltersweb You need to include the dependency by for example specifying it in the |
@TimvdLippe this was already specified in my polymer.json. Is there something else I am missing? Here is my polymer.json:
|
Interestingly I just looked in my build folder and manifest.json is also not being added during the build even though it is in the "includeDependencies" array as well. |
I did some more sleuthing and it looks like this is a known issue. See reference to issue above. |
Just fixed with v0.16.0 |
Description
Error thrown in FF, IE, and Safari (but not in Chrome) when Polymer CLI template site is built and deployed. Blank page is rendered. Error not seen in localhost using 'polymer serve' in any of these browsers.
Live Demo
https://polyapp-c25f2.firebaseapp.com/
and
https://a11ytests-d60ea.firebaseapp.com/
Steps to Reproduce
Expected Results
In browsers other than Chrome page renders correctly and no error is thrown
Actual Results
In browsers other than Chrome page is blank and the following error is thrown:
"SyntaxError: expected expression, got '<' for the file bower_components/webcomponentsjs/webcomponents-lite.min.js
Browsers Affected
Versions
The text was updated successfully, but these errors were encountered: