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

Update sveletekit example #9

Closed
mfridman opened this issue Aug 8, 2022 · 1 comment · Fixed by #15
Closed

Update sveletekit example #9

mfridman opened this issue Aug 8, 2022 · 1 comment · Fixed by #15

Comments

@mfridman
Copy link

mfridman commented Aug 8, 2022

Suggestion to using vite instead of svelte-kit. This will be deprecated in the future, and things work quite nicely with vite.

sveltejs/kit#5332

Otherwise folks running the example might run into:

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 fimport('vite').UserConfig} */
  const config = {
  plugins: [sveltekit()]
};

export default config;
@timostamm
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants