Open albinmedoc opened 21 hours ago
I managed to get the application started using these commands instead:
pnpm install
pnpm prisma db push
after I have added environment variable DATABASE_URL
pnpm run dev
But when following the setup-wizard to create the first user I get this error:
Instead of pnpm prisma db push
, try pnpm prisma migrate dev
Also if you'd like to implement any features, please add a comment to any existing (or create a new) feature request so I know and don't work on it as well.
Still getting the last error when following the setup wizard, user already exist...
> wishlist@0.0.1 dev /Users/al6688me/Documents/Repositories/wishlist
> vite dev
VITE v5.4.11 ready in 941 ms
➜ Local: http://localhost:5173/
➜ Network: use --host to expose
➜ press h + enter to show help
SvelteKitError: Not found: /registerSW.js
at resolve (/Users/al6688me/Documents/Repositories/wishlist/node_modules/.pnpm/@sveltejs+kit@2.8.1_@sveltejs+vite-plugin-svelte@4.0.1_svelte@5.2.3_vite@5.4.11_@types+node@2_pb5rirknwahgnoixf77ldhrq4q/node_modules/@sveltejs/kit/src/runtime/server/respond.js:530:13)
at resolve (/Users/al6688me/Documents/Repositories/wishlist/node_modules/.pnpm/@sveltejs+kit@2.8.1_@sveltejs+vite-plugin-svelte@4.0.1_svelte@5.2.3_vite@5.4.11_@types+node@2_pb5rirknwahgnoixf77ldhrq4q/node_modules/@sveltejs/kit/src/runtime/server/respond.js:330:5)
at Object.handle (/Users/al6688me/Documents/Repositories/wishlist/src/hooks.server.ts:9:16)
at Module.respond (/Users/al6688me/Documents/Repositories/wishlist/node_modules/.pnpm/@sveltejs+kit@2.8.1_@sveltejs+vite-plugin-svelte@4.0.1_svelte@5.2.3_vite@5.4.11_@types+node@2_pb5rirknwahgnoixf77ldhrq4q/node_modules/@sveltejs/kit/src/runtime/server/respond.js:327:40)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5) {
status: 404,
text: 'Not Found'
}
prisma:error
Invalid `prisma.user.create()` invocation:
Foreign key constraint violated: `foreign key`
Delete the db and run the prisma migrate dev. If it doesn't automatically run the seed command, then run pnpm prisma db seed
as well
Is your feature request related to a problem? Please describe. I can't manage to get the application running on my computer. I would like to add new features to the application. I have installed Node 22 and pnpm, then I run these commands in order:
pnpm install
pnpm prisma generate
pnpm run dev
Describe the solution you'd like A clear and concise steps how to setup the developing environment
Additional context