You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have this error "svelte-kit dev is no longer available — use vite dev instead":
/home/stephane/git/github.com/sveltekit-i18n/lib/examples/single-load
$ npm install
npm WARN ignoring workspace config at /home/stephane/git/github.com/sveltekit-i18n/lib/examples/single-load/.npmrc
up to date, audited 589 packages in 843ms
89 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
$ npm run dev
npm WARN ignoring workspace config at /home/stephane/git/github.com/sveltekit-i18n/lib/examples/single-load/.npmrc
> single-load@0.0.1 dev
> svelte-kit dev
(⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂⠂) ⠧ : timing config:load:flatten Completed in 1ms
> svelte-kit dev is no longer available — use vite dev instead
1. Install vite as a devDependency with npm/pnpm/etc
2. Create a vite.config.js with the @sveltejs/kit/vite plugin (see below)
3. Update your package.json scripts to reference `vite dev` instead of `svelte-kit dev`
// vite.config.js
import { sveltekit } from '@sveltejs/kit/vite';
/** @type {import('vite').UserConfig} */
const config = {
plugins: [sveltekit()]
};
export default config;
npm ERR! Lifecycle script `dev` failed with error:
npm ERR! Error: command failed
npm ERR! in workspace: single-load@0.0.1
npm ERR! at location: /home/stephane/git/github.com/sveltekit-i18n/lib/examples/single-load
Best regards,
Stéphane
The text was updated successfully, but these errors were encountered:
Hello,
I have this error "svelte-kit dev is no longer available — use vite dev instead":
Best regards,
Stéphane
The text was updated successfully, but these errors were encountered: