Skip to content

Error building locally a Remix v2 site in a sst v2 app #27719

@dani-mp

Description

@dani-mp

Bug description

Error building locally a Remix v2 site in a sst v2 app.

✘ [ERROR] Could not resolve "@prisma/client/runtime/query_compiler_bg.mysql.mjs"

    ../core/src/db/prisma/internal/class.ts:79:39:
      79 │ ...wait import("@prisma/client/runtime/query_compiler_bg.mysql.mjs"),
         ╵                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

  The module "./runtime/query_compiler_bg.mysql.mjs" was not found on the file system:

    ../../node_modules/@prisma/client/package.json:129:11:
      129 │     "./*": "./*"
          ╵            ~~~~~

using this client generator config:

generator client {
  // required
  provider = "prisma-client"
  output   = "../packages/core/src/db/prisma"

  // optional
  runtime                = "nodejs"
  moduleFormat           = "esm"
  generatedFileExtension = "ts"
  importFileExtension    = "ts"

  // preview features
  previewFeatures = ["driverAdapters", "queryCompiler"]
}

Severity

🚨 Critical: Data loss, app crash, security issue

Reproduction

shared in bug description

Expected vs. Actual Behavior

no error vs. error

Frequency

Consistently reproducible

Does this occur in development or production?

Both development and production

Is this a regression?

i'm trying to use the new stuff, i'm blocked in 6.5 because of this

Workaround

No workaround found

Prisma Schema & Queries

generator client {
  // required
  provider = "prisma-client"
  output   = "../packages/core/src/db/prisma"

  // optional
  runtime                = "nodejs"
  moduleFormat           = "esm"
  generatedFileExtension = "ts"
  importFileExtension    = "ts"

  // preview features
  previewFeatures = ["driverAdapters", "queryCompiler"]
}

Prisma Config

// Add your `prisma.config.ts`

Logs & Debug Info

// Debug logs here

Environment & Setup

  • OS: macOS
  • Database: PlanetScale
  • Node.js version: 20.x

Prisma Version

6.12

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug/0-unknownBug is new, does not have information for reproduction or reproduction could not be confirmed.kind/bugA reported bug.topic: generator-tstopic: remix

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions