Yes, I see that - fair enough.
However, doing that means the developer has lost the ability to 'just use' components...we now need to adjust our build tools to accommodate this issue - well, until import maps make it into the world, perhaps.
Although, I guess it wasn't always that simple back with html imports&bower either - eg when using multiple components that use different polymer versions, for example. Onward and upward :)
I went to a Beijing web group recently where someone presented some basic React, and it essentially looked very similar to lit-element, except with non-standard code. Since I did a short Polymer presentation to the Guadalahara PHP group when I went there some years ago, I thought I'd do that again here - except the big 'wow' was not having to have any build tools - I just did a 'bower install' for the google maps element, opened an editor (vim, no less), typed in html, started a server and web browser, and WOW...but that's not true any more, so it limits the 'simplicity' impact, imo.
TBH, perhaps I just need to catch up...I've been using Polymer since something like 0.3, but have been stuck at v2 for some time. It's a daunting task to upgrade a whole app, not least the QA that needs to be done and there's always more important things.
More relevant to the reason for this email thread - I have a another project that we had a contractor develop, and it uses an old version of lit-html/lit-element (the latter seemed to be hard-coded, not installed by npm - not sure if it has been modified, or not).
My task is to add a qrcode scanner, so I found an element[1] and attempted to add it...but I'm having all sorts of trouble; I had expected to just add an 'import' line, and use the element in the html. It does sort of work, but the style of a completely unrelated element is being stomped on for some reason (with the opening tags of html comments, ie '<!--'...quite odd). I abandoned that effort and decided to try to upgrade lit-html and lit-element, so that I would only have one version of each in my app, but now my html is all 'gone', replaced with:
"part => {
part.setValue(defaultContent);
part.setValue(promise);
}"
So, I'm not sure what's going on there. So, I'm abandoning that attempt too, and I'll try to move the whole project into a starter kit. I see Polymer still has one, though it's now 'PWA Starter Kit' - but there's also an open-wc (which I'd not heard of until you mentioned it). I wonder which one I should use.
BTW, the project I'm trying to add the qrscanner to is in typescript, uses redux, and build with rollup. They all seem to be 'recommended' parts, but they're all somewhat new to me in this project, and while I've managed to pick them up somewhat from making other changes, I certainly don't grok them fully.
Any recommendations for how to move forward would be appreciated.
Max.
[1] <
https://www.webcomponents.org/element/@granite-elements/granite-qrcode-scanner>
> > > > To unsubscribe from this group and stop receiving emails from it, send an email to
polymer-dev...@googlegroups.com <mailto:
polymer-dev%2Bunsu...@googlegroups.com>.