create-vite-pwa
create-vite-pwa copied to clipboard
Fix framework name `lit-element` to `lit`
Hi, I created a project via yarn create vite-pwa fragmemo-pwa --ts
β― yarn create vite-pwa fragmemo-pwa --ts
yarn create v1.22.11
[1/4] π Resolving packages...
[2/4] π Fetching packages...
[3/4] π Linking dependencies...
warning "create-vite-pwa > [email protected]" has unmet peer dependency "@babel/preset-env@^7.1.6".
[4/4] π¨ Building fresh packages...
success Installed "[email protected]" with binaries:
- create-vite-pwa
- cvpwa
? Select a framework: lit-element
Scaffolding lit-element project with TypeScript in:
/Users/noriyo_tcp/MyPlayground/fragmemo-pwa
ENOENT: no such file or directory, lstat '/Users/noriyo_tcp/.config/yarn/global/node_modules/create-vite/template-lit-element-ts'
The project directory was created but it was empty!
lit-element was renamed to lit at https://github.com/vitejs/vite/pull/5012
I fixed it and it seems to work fine π

β― node create-vite-pwa/index.js create-vite-pwa-fixed --ts
? Select a framework: lit
Scaffolding lit project with TypeScript in:
/Users/noriyo_tcp/MyPlayground/create-vite-pwa-fixed
Done. Now run:
cd create-vite-pwa-fixed
npm install
npm run dev
@Snugug
Hi, sorry for leaving this pull request alone. If you don't mind, could you please merge it in?