Lit Playground Downloaded Code Don't Run Locally

I downloaded my-timer files from Lit playground () what I found when I unzip the folder:

  1. my-timer.ts
  2. icons.ts
  3. index.html
  4. package.json

downloaded package.json contains below dependencies:

{ "dependencies": { "lit": "^2.0.0", "@lit/reactive-element": "^1.0.0", "lit-element": "^3.0.0", "lit-html": "^2.0.0" } }

I removed the above package.json and added another package.json file suggested by () VS Code setup section.

here is my new package.json file ()

also added tsconfig.json file as I am getting errors for typescript. and also added web-dev-server as suggested. after doing all the above step I run the below command npm run serve, but nothing is on I don't know what am I missing?

my latest code is here (). please guide me through the right steps. and what is wrong in my code?

5
Marcus Vance

Marcus Vance

Cybersecurity & Digital Privacy Researcher

Marcus Vance is a cybersecurity auditor and technology writer dedicated to educating the public about online safety, data privacy regulations, enterprise security, and emerging cyber threats.

Share this article