Skip to content
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

mwc components not working with lit@2 (lit.dev) #2623

Closed
dejan9393 opened this issue Aug 18, 2021 · 2 comments
Closed

mwc components not working with lit@2 (lit.dev) #2623

dejan9393 opened this issue Aug 18, 2021 · 2 comments
Labels
Type: Bug Something isn't working

Comments

@dejan9393
Copy link

The mwc components do not currently work with lit 2.0.0-rc.2, even when forcing resolutions for lit-html and lit-element to match due to requirement for importing directives with an extension. e.g:

Currently:
import { ifDefined } from 'lit-html/directives/if-defined';

Should be:
import { ifDefined } from 'lit-html/directives/if-defined.js';

@dejan9393 dejan9393 added Focus Area: Components Type: Bug Something isn't working labels Aug 18, 2021
@dfreedm
Copy link
Collaborator

dfreedm commented Aug 20, 2021

I don't think lit cares about file extensions directly, but this is probably more important for your serving or bundling infrastructure to have file extensions.

This is related to #2561

@dfreedm
Copy link
Collaborator

dfreedm commented Aug 20, 2021

Merging this issue into #2632

@dfreedm dfreedm closed this as completed Aug 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants