I downloaded my-timer files from Lit playground () what I found when I unzip the folder:
- my-timer.ts
- icons.ts
- index.html
- 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