-
Notifications
You must be signed in to change notification settings - Fork 31
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
snackbar from template rendering issue #74
Comments
I have had a similar issue. Just make sure yout lit-element/lit-html versions are the same as in weightless. |
Made sure there is only one version of lit-element/lit-html being used but the issue still remains. |
@andreasbm - any ideas about this issue? , I tried stepping thru but couldn't find the cause. |
After digging more into this, i found the issue. The if/else condition "value instanceof TemplateResult" is skipped, event thought value is clearly an instance of TemplateResult and it just defaults to commit the value as is. I guess the issue lies at lit-html , my code is running as ES modules from polymer cli, not babel or rollup. Any ideas how to resolve this? Thanks |
Finally resolved this. It turns out that weightless npm install includes its own version of lit-html, the if condition was skipped because the instance of TemplateResult was from the weightless copy of lit-html. |
Having a difficult time getting the snackbar from a template to work. Tried the code from the demo and a very simple template and it always rendered the same. Seems like the template content is not parsed.
The text was updated successfully, but these errors were encountered: