File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
packages/schema/src/plugins/enhancer/enhance Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -316,12 +316,12 @@ export function enhance<DbClient extends object>(prisma: DbClient, context?: Enh
316316
317317 private createLogicalPrismaImports ( prismaImport : string , prismaClientImport : string , target : string | undefined ) {
318318 const prismaVersion = getPrismaVersion ( ) ;
319- const runtimeLibraryImportSubPath = semver . gte ( prismaVersion , '7.0.0' ) ? '/runtime/client' : '/runtime/library' ;
319+ const runtimeLibraryImportSubPath = prismaVersion && semver . gte ( prismaVersion , '7.0.0' ) ? '/runtime/client' : '/runtime/library' ;
320320
321321 const prismaTargetImport = target === 'edge' ? `${ prismaImport } /edge` : prismaImport ;
322322 const runtimeLibraryImport = this . isNewPrismaClientGenerator
323323 ? // new generator has these types only in "@prisma/client"
324- ' @prisma/client${runtimeLibraryImportSubPath}'
324+ ` @prisma/client${ runtimeLibraryImportSubPath } `
325325 : // old generator has these types generated with the client
326326 `${ prismaImport } /runtime/library` ;
327327
You can’t perform that action at this time.
0 commit comments