3 ms·
Yes, installer worked. npm run dev resulted in a generated index.html not the contents of src/app/App.svelte
by nickstinemates 3y ago
Yes, installer worked. npm run dev resulted in a generated index.html not the contents of src/app/App.svelte
- pcthrowaway 3y agonpm run dev should start the dev server with a page that hot reloads when you make changes in the App.svelte. You selected Svelte and not Sveltekit? I just went through it and there's an important step of changing into the directory created by `npm create ...` (named `my-svelte-app` in the example above) and then running `npm install` inside that directory. Can confirm it works for me with npm version 8.5.5, node v15.15.0, on a macbook air with an Intel processor. npm create vite@latest my-svelte-app -- --template svelt cd my-svelte-app/ npm install npm run dev Started up the dev server, made a change in the App.svelte, and could see it reflected in the browser immediately.