P
Prisma3mo ago
Minato

[ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './runtime/library.js' is not defined in "exports"

Hello, I get the error from the title whenever I try to run a project in Docker (image node:20.11.0-bullseye). Prisma is the only dependency in the project, prisma generate has been correctly executed. Error stack: Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './runtime/library.js' is not defined by "exports" in /ragemp-server/node_modules/.pnpm/@prisma+client@5.13.0_prisma@5.13.0/node_modules/@prisma/client/package.json 2024-04-30 12:50:56 at throwExportsNotFound (internal/modules/esm/resolve.js:285:9) 2024-04-30 12:50:56 at packageExportsResolve (internal/modules/esm/resolve.js:491:3) 2024-04-30 12:50:56 at resolveExports (internal/modules/cjs/loader.js:450:36) 2024-04-30 12:50:56 at Function.Module._findPath (internal/modules/cjs/loader.js:490:31) 2024-04-30 12:50:56 at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:27) 2024-04-30 12:50:56 at Function.Module._load (internal/modules/cjs/loader.js:743:27) 2024-04-30 12:50:56 at Module.require (internal/modules/cjs/loader.js:965:19) 2024-04-30 12:50:56 at require (internal/modules/cjs/helpers.js:88:18) Prisma Schema: generator client { provider = "prisma-client-js" } datasource db { provider = "postgresql" url = env("DATABASE_URL") }
0 Replies
No replies yetBe the first to reply to this messageJoin