SolidJSS
SolidJSโ€ข2y agoโ€ข
6 replies
zimo

Prisma integration example fails in build

Could someone help me try to reproduce a bug I get in the official npm init solid@latest?

1. npm init solid@latest
2. Select the following options: Solid-Start: Yes, TypeScript: Yes, template: "with-prisma"
3. cd into project folder
4. npm install
5. npx prisma generate
6. npx prisma migrate dev
7. npm run dev
8. Open "localhost:3000". Interact with the site. Register a user, login, logout. Observe correct behavior.
9. npm run build
10. node .output/server/index.mjs
11. Open "localhost:3000". Interact with the site. Register a user, login, logout. Observe it's impossible. Error: Invalid prisma.user.findUnique() invocation: The table main.User does not exist in the current database.

I wrote an issue on the Prisma repo here: https://github.com/prisma/prisma/issues/24845
but I don't see other people with this error so it might be something in the Solid/Vinxi ecosystem.
Was this page helpful?