This is just a heads-up about a potential red herring when prisma-field-encryption is used in conjunction with prisma 5.16.0. The first error I encountered after updating prisma was:
Error: [prisma-field-encryption] Error: no encryption key provided.
at configureKeys (<path-sanitized>\node_modules\prisma-field-encryption\dist\encryption.js:18:15)
at fieldEncryptionExtension (<path-sanitized>\node_modules\prisma-field-encryption\dist\extension.js:10:49)
at Object.<anonymous> (<path-sanitized>\src\db\prisma-client.ts:5:63)
at Module._compile (node:internal/modules/cjs/loader:1364:14)
at Module.m._compile (<path-sanitized>\node_modules\ts-node\src\index.ts:1618:23)
at Module._extensions..js (node:internal/modules/cjs/loader:1422:10)
at Object.require.extensions.<computed> [as .ts] (<path-sanitized>\node_modules\ts-node\src\index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:1203:32)
at Function.Module._load (node:internal/modules/cjs/loader:1019:12)
at Module.require (node:internal/modules/cjs/loader:1231:19)
It took me a while to figure out that the issue came from prisma, see https://github.com/prisma/prisma/issues/24634 . So, no action needed here; just avoid prisma 5.16.0 (either use 5.15.1 or wait for 5.16.1).
This is just a heads-up about a potential red herring when prisma-field-encryption is used in conjunction with prisma 5.16.0. The first error I encountered after updating prisma was:
It took me a while to figure out that the issue came from prisma, see https://github.com/prisma/prisma/issues/24634 . So, no action needed here; just avoid prisma 5.16.0 (either use 5.15.1 or wait for 5.16.1).