|
|
|
|
|
by pcthrowaway
1098 days ago
|
|
npm 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. |
|