Relative references must start with either “/”, “./”, or “../”

This doesn’t work because js imports must reference a specific file with either a relative path or an absolute path, assuming your project structure is something like the following: /node_modules /lit-element /other-library /src /components my-element.js index.html From my-element.js, your import would be import {LitElement, html} from ‘../../node_modules/lit-element/lit-element.js’ However, since this kind of configuration is confusing … Read more

How to create LitElement without Shadow DOM?

Just to make sure this question is shown as answered: createRenderRoot allows you to override the operation that creates a shadow root. It’s usually used to render to light dom: createRenderRoot() { return this; } Though it could be used to render somewhere else entirely. I really recommend using shadow DOM. Composition is difficult if … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)