-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
chore(manager): remove duplicate lit module #2334
Conversation
2a00ad0
to
7fe1874
Compare
The webpack method worked! Now I just need to clean this up a little bit. |
Unfortunately, I tried upgrading the diff --git a/client/src/www/views/servers_view/server_list_item/server_card/server_rename_dialog/index.ts b/client/src/www/views/servers_view/server_list_item/server_card/server_rename_dialog/index.ts
index cb4f64f2..e624608c 100644
--- a/client/src/www/views/servers_view/server_list_item/server_card/server_rename_dialog/index.ts
+++ b/client/src/www/views/servers_view/server_list_item/server_card/server_rename_dialog/index.ts
@@ -60,14 +60,14 @@ export class ServerRenameDialog extends LitElement {
On older versions of iOS, md-textfield triggers itself indefinitely here,
so we must use mwc-textfield
-->
- <mwc-textfield
+ <md-filled-text-field
slot="content"
maxLength="100"
value="${this.internalServerName}"
@input=${(e: Event) => {
this.internalServerName = (e.target as HTMLInputElement).value;
}}
- ></mwc-textfield>
+ ></md-filled-text-field>
<fieldset slot="actions">
<md-text-button @click=${this.handleClose}
>${this.localize('cancel')}</md-text-button |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM assuming this works
So on my iOS 15.5 device using the |
current findings:
override
feature instead - at first to force all our dependencies to use lit@3 and@lit/[email protected]
. This didn't work as npm can't force versions upon dependencies that those dependencies don't accept:override
to enforce [email protected] instead, as it seemed that was the version all our dependencies would accept:As you can see, this successfully removed the multiple versions of lit warning from the tests!
mwc
component as a workaround. This further lends credence to the idea that@material/web
(the more modernmd
prefixed web components) don't play well with the older lit versions and that upgrading to 3 will ultimately fix this issue.At this point, I think our only option is to use Webpack to force resolution of lit throughout our build (something I was trying to avoid):
This is a little tricky given our monorepo structure, but doable.
Out of scope would be to switch back to yarn, as yarn 2+ has really precise controls for managing the dependencies of your dependencies.
Also, we should probably let the lit team (?) know about the
overrides
trick I discovered? That way they can update their documentation to be more helpful.