uthpalax / starter-kit Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://nhost-sveltekit-starter-kit.vercel.app/
Home Page: https://nhost-sveltekit-starter-kit.vercel.app/
Need to be replaced with @nhost/nhost-js
$ 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.
```
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.