Skip to content

Prisma adapter does not work with custom output path #13035

@Stadly

Description

@Stadly

Adapter type

@auth/prisma-adapter

Environment

  System:
    OS: Linux 5.15 Debian GNU/Linux 12 (bookworm) 12 (bookworm)
    CPU: (16) x64 Intel(R) Xeon(R) W-11955M CPU @ 2.60GHz
    Memory: 3.70 GB / 15.23 GB
    Container: Yes
    Shell: 5.2.15 - /bin/bash
  Binaries:
    Node: 20.19.2 - /usr/local/bin/node
    npm: 10.8.2 - /usr/local/bin/npm
    pnpm: 10.11.1 - /usr/local/bin/pnpm
  npmPackages:
    @auth/core: ^0.36.0 => 0.36.0 
    @auth/prisma-adapter: ^2.9.1 => 2.9.1 
    @auth/sveltekit: ^1.6.0 => 1.6.0 

Reproduction URL

N/A

Describe the issue

The Prisma adapter imports from @prisma/client. This does not work when using a custom output path in the Prisma generator.

Prisma strongly recommends using a custom output path. Not doing so results in a warning in version 6.6.0, and it will be required in version 7. Also, the new prisma-client generator requires a custom output path.

How to reproduce

Create a schema with a custom Prisma output path.

Expected behavior

Auth.js should not import Prisma and PrismaClient from @prisma/client.

Metadata

Metadata

Assignees

No one assigned

    Labels

    adaptersChanges related to the core code concerning database adaptersbugSomething isn't workinginvalid reproductionThe issue did not have a detectable valid reproduction URLtriageUnseen or unconfirmed by a maintainer yet. Provide extra information in the meantime.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy