Using with lit and astro
See original GitHub issueUsing this package doesn’t work with lit and Astro. it doesn’t recognize the props being used in lit components. I’m using typescript. It recognizes props on .astro
files just fine.
Issue Analytics
- State:
- Created a year ago
- Comments:5
Top Results From Across the Web
@astrojs/lit Astro Documentation
To use your first Lit component in Astro, head to our UI framework documentation. This explains: how framework components are loaded,; client-side ...
Read more >Astro Framework Lit Example - StackBlitz
Run official live example code for Astro Framework Lit, created by Withastro on StackBlitz. ... Open in StackBlitz](https://developer.
Read more >[New Framework] Lit SSR · Issue #109 · withastro/astro - GitHub
I did a proof of concept of Lit working with their new SSR support. It's in this branch: https://github.com/snowpackjs/astro/tree/try-lit.
Read more >Server Side Rendering Vanilla Custom elements in Astro
Considering that LitElement down the line just extends from HTMLElement, I was hoping to be able to reuse the Lit integration to SSR...
Read more >Astro. Evaluating the New Kid on the Block. Running Web ...
Using the astro add lit command, Lit Element support can be added automatically to project. There is also a manual guide to adding...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ll upload it and update this comment
StackBlitz reproduction
i think to go about fixing this you’d need be running rollup/postcss yourself instead of via vite/astro. then you’ll have lower level access to add that postcss-lit plugin that intends to process contents of
css()
in JS through postcss. for right now tho yeah, the contents ofcss()
are being passed straight to lit’s function. maybe you could find a way to callpostcss()
instead ofcss()
? then you’d be specifically asking for processed styles before giving them to lit?or, maybe have lit import a file instead of writing the styles in a JS function? perhaps postcss will process it before it gets shared to modules.