Skip to content

prisma issue: start-basic-auth example not working when running build results (production) #3971

@renomureza

Description

@renomureza

Which project does this relate to?

Start

Describe the bug

When running the build output of the start-basic-auth example, it doesn't work. When refreshing the /post page, it throws the error "Something went wrong! e is not iterable".

Tried upgrading to the latest Prisma causing build errors.

Your Example Website or App

https://github.com/TanStack/router/tree/main/examples/react/start-basic-auth

Steps to Reproduce the Bug or Issue

  1. pnpm install
  2. npm run prisma-generate
  3. npx prisma migrate deploy
  4. npm run build
  5. npm run start
  6. open http://localhost:3000/posts and refresh, error will be displayed.

Expected behavior

When refreshing the page http://localhost:3000/posts it should not display any errors.

Screenshots or Videos

Image

Platform

  • OS: Windows
  • Browser: Chrome
  • Version: 135.0.7049.42

Additional context

Variables from .env are also not loaded in production. On the latest Prisma it produces a build error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions