Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"svelte-kit dev is no longer available — use vite dev instead" error #85

Closed
stephane-klein opened this issue Jul 22, 2022 · 1 comment · Fixed by #87
Closed

"svelte-kit dev is no longer available — use vite dev instead" error #85

stephane-klein opened this issue Jul 22, 2022 · 1 comment · Fixed by #87
Labels
bug Something isn't working examples Issue related to examples

Comments

@stephane-klein
Copy link

Hello,

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

@jarda-svoboda
Copy link
Member

Examples need to be updated as current version of SvelteKit uses vite dev instead of svelte-kit dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working examples Issue related to examples
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants