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 Related questions 6 LiteIDE won't run code after building, Process failed to start 2 LiteIDE debug message No executable specified use target exec 10 Torch / Lua after installation is not working Related questions 6 LiteIDE won't run code after building, Process failed to start 2 LiteIDE debug message No executable specified use target exec 10 Torch / Lua after installation is not working 1 luarocks install local source 0 lite-server not providing .js file inside /js folder - browser doesnt request /js file 3 playground program doesn't run 0 Lite-server not working 0 How do I add lit-html to an existing project? 1 Problem with lit-html, doesn't recognize @click and other attributes from the library 3 Using Lit with Javascript and no build tools Load 7 more related questions Show fewer related questions Reset to default

Know someone who can answer? Share a link to this question via email, Twitter, or Facebook.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

You Might Also Like