bluwy/create-vite-extra

Cannot build the deno-lit template

gmosx opened this issue · 3 comments

gmosx commented

Thank you for providing the deno-lit template.

I would like to report an issue though. When I am trying to build the example, with:

deno task built

I get:

Name in package.json is required if option "build.lib.fileName" is not provided.
error during build:
Error: Name in package.json is required if option "build.lib.fileName" is not provided.
bluwy commented

Ah looks like that option would be required in Vite as Deno doesn't have package.json. Adding that one.

gmosx commented

Thanks for the quick response.

However, now deno task serve doesn't seem to be working, seems an app.mjs files is generated instead of index.html etc.

bluwy commented

Oh ya lit projects with vite don't really have a serve or preview command as it's using Vite's library mode feature. I guess we should remove that to avoid confusion. Here's Vite's template too: https://github.com/vitejs/vite/blob/7c4accb8dec3204948d7b73e5386e789661f9198/packages/create-vite/template-lit/package.json#L15