-
Notifications
You must be signed in to change notification settings - Fork 198
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-build breaks the app-storage/app-indexeddb-mirror element #1182
Comments
@FredKSchott have been able to review it? Thanks in advance! |
@abdonrd sorry I still haven't been fix the problem you're seeing with that element. I'll try to find some time next week but I can't promise I'll be able get to it :( Have you tried digging into the build command yourself? Try using the |
@FredKSchott If I add "includeDependencies": [
"bower_components/app-storage/app-indexeddb-mirror/app-indexeddb-mirror-worker.js",
"bower_components/app-storage/app-indexeddb-mirror/common-worker-scope.js",
"bower_components/webcomponentsjs/webcomponents-lite.min.js",
"LICENSE.txt",
"app.yaml",
"manifest.json"
] But still it is broken in the PS: No errors with |
Fixed by GDGSpain/gdg.es#34 |
Comment at GDGSpain/gdg.es#34 (comment) |
Oof, okay reopening |
@FredKSchott the new |
@abdonrd the new analyzer was added in v0.5.0, can you download the latest version from npm and see if that fixes it? Fingers crossed for you... |
Otherwise, please update your steps to reproduce (currently getting |
Thanks @FredKSchott! 🙏 I has updated |
Right now, the behaviors (with your GDGSpain/gdg.es#34) break the build: |
You are seeing that output on my #34 branch? Hmm… That's strange because Will take a look first thing tomorrow morning
|
Yes, I have your branch with extra changes (GDGSpain/gdg.es#43). |
Okay I dug in a bit today, and uglify is stripping out comments in your build process. Because of this the analyzer isn't able to find the So the quick fix is to remove JS minification from the build process for now. My copy of I've tried adding uglify back in with the |
Thanks @FredKSchott! Anyway, even disabling the uglify (the |
So I've looked into this again and I don't think there's anything wrong in build/analyzer now. This might just be a problem between firebase/app-storage elements and bundling. Can you reduce this down to the smallest reproducible test case? It would be great if we could find out what exactly is breaking on the groups page without the complexity of the rest of your app. That will help us track down and fix this issue as quickly as possible. |
@FredKSchott tell me if it works for you: abdonrd/polymer-build-app-storage-issue :) |
for me worked with "includeDependencies" as @abdonrd says, both bundled and unbundled builds |
@abdonrd @FredKSchott @midesweb This is how I resolve this issue - to include the "sourceGlobs": [
"src/**/*",
"images/**/*",
"bower.json",
"bower_components/app-storage/app-indexeddb-mirror/*.js"
], |
I think this is related PolymerElements/app-storage#78 and notwaldorf/mojibrag#49 |
@FredKSchott have you been able to review the https://github.com/Polymer/polymer-build/issues/22#issuecomment-260749112? |
@FredKSchott any news? :) |
I got this problem because of my service worker. I'm pretty sure you also have one and it also is the cause for you. I solved this problem by adding this to ignoreUrlParametersMatching: [/^<your origin here>/] So for example for @abdonrd it would be: ignoreUrlParametersMatching: [/^https:\/\/gdg-es-develop\.firebaseapp\.com/] Of course, as you already found out, it's also required to add this to "extraDependencies": [
"bower_components/app-storage/app-indexeddb-mirror/app-indexeddb-mirror-worker.js",
"bower_components/app-storage/app-indexeddb-mirror/common-worker-scope.js"
] Explanation As it's written here
So For me it should be at least noted in the Or it should be redesigned to avoid problems like this at all. |
Thanks @kownacki! I update with some info from GDGSpain/gdg.es#32 (comment):
|
@abdonrd It is enough to make it working in desktop browsers where Shared Workers are available. But I hope it helps :) |
@kownacki I has tried what you said at https://github.com/Polymer/polymer-build/issues/22#issuecomment-307191630, but in Safari (macOS) continues to fail. Btw, Safari doesn't have SW support. Then the |
@abdonrd If there is no Service Worker then I see no other option than that this this file is simply not available on the server, thus 404. You noticed that it happens only on the bundled version. I don't bundle my code with polymer-build. There must be still something wrong with the bundle process. |
@kownacki yes, before the build it works: |
@kownacki your solution works for me! Thanks a lot! |
Closing and old issue. |
Description
polymer-build
breaks theapp-storage/app-indexeddb-mirror
element.Versions & Environment
Steps to Reproduce
Open the
localhost:8080/groups
page.Expected Results
Achieved with the
polymer serve
.Actual Results
The text was updated successfully, but these errors were encountered: