Giter Site home page Giter Site logo

starter-kit's People

Contributors

uthpalax avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

starter-kit's Issues

svelte-kit dev is no longer available — use vite dev instead

$ pnpm run dev -- --open
> 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`

Detailed:
Svelte-Kit Dev Is No Longer Available Use Vite Dev Instead
https://www.youtube.com/watch?v=DSaRNhPpwMM

After that:

failed to load config from /home/user/projects/starter-kit/vite.config.js
error when starting dev server:
file:///home/user/projects/starter-kit/node_modules/.pnpm/@[email protected][email protected][email protected]/node_modules/@sveltejs/vite-plugin-svelte/dist/index.js:389
import { createFilter } from "vite";
         ^^^^^^^^^^^^
SyntaxError: Named export 'createFilter' not found. The requested module 'vite' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:

import pkg from 'vite';
const { createFilter } = pkg;

    at ModuleJob._instantiate (node:internal/modules/esm/module_job:128:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:194:5)
    at async Promise.all (index 0)
    at async ESMLoader.import (node:internal/modules/esm/loader:385:24)
    at async importModuleDynamicallyWrapper (node:internal/vm/module:437:15)
    at async loadConfigFromFile (/home/user/projects/starter-kit/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-689425f3.js:61925:31)
    at async resolveConfig (/home/user/projects/starter-kit/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-689425f3.js:61456:28)
    at async createServer (/home/user/projects/starter-kit/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/chunks/dep-689425f3.js:60111:20)
    at async CAC.<anonymous> (/home/user/projects/starter-kit/node_modules/.pnpm/[email protected]/node_modules/vite/dist/node/cli.js:688:24)
 ELIFECYCLE  Command failed with exit code 1.
 ```

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.