-
Notifications
You must be signed in to change notification settings - Fork 10
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
Error importing Lit element via automatic include when NOT using the Lit SSR plugin #1403
Comments
Basically I consider this user error on my part, but am submitting a clarification that would have made my mistake obvious. |
Sorry, is this related to the I'm not quite sure I understand what this issue is reporting, but if it's the case that you're trying to use Lit components in an SSR (page) context then that is what the Lit renderer plugin is for. At this time you can only use one SSR rendering option at a time, however you can always include |
This is what happens when you are (like me) stupid and forget which files can be included and which you need to write script or link tags for. Its the reason why I included the comment about not forgetting in PR # 178. |
Ok, thanks for clarifying! Since this is just a matter of clarifying on docs / usage, we can keep chatting in the website PR then. |
when NOT using the lit SSR plugin, and defining an SSR page using the HTML element method per https://greenwoodjs.dev/docs/pages/server-rendering/'s recommended default, you get the following error when you import a lit-element for use in your page.
the html to reproduce might not be exactly right as I did this on the fly here to summarize what I hit with a more complicated element, but it should be close.
/src/components/CustomElement.ts :
/src/pages/somePage.ts :
The text was updated successfully, but these errors were encountered: