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