create-vite-pwa icon indicating copy to clipboard operation
create-vite-pwa copied to clipboard

Fix framework name `lit-element` to `lit`

Open noriyotcp opened this issue 4 years ago β€’ 1 comments

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 πŸ˜„

γ‚Ήγ‚―γƒͺγƒΌγƒ³γ‚·γƒ§γƒƒγƒˆ 2021-10-23 4 39 05

 ❯ 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

noriyotcp avatar Oct 22 '21 19:10 noriyotcp

@Snugug

Hi, sorry for leaving this pull request alone. If you don't mind, could you please merge it in?

noriyotcp avatar Aug 27 '22 15:08 noriyotcp