Skip to content

lit-element.js is not found when installed via npm #150

@chwzr

Description

@chwzr

When I install npm i Polymer/lit-element and import it

import {LitElement, html} from '@polymer/lit-element/lit-element.js';

and then run polymer serve

following error shows up:
http://localhost:8081/node_modules/@polymer/lit-element/lit-element.js 404 (Not Found)

I looked up in the node_modules dir and inside the lit-element folder is no lit-element.js ... its missing!

Expected Results

Import is working.

Actual Results

lit-element.js is not installed when installing with npm

Browsers Affected

  • Chrome
  • Firefox
  • Edge
  • Safari 11
  • Safari 10
  • IE 11

Versions

my package.json has thees dependencies listed:

"@webcomponents/webcomponentsjs": "^2.0.2",
"@polymer/polymer": "^3.0.2",
"@polymer/lit-element": "^0.5.2"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions