Should not give any warnings about using a deprecated Prisma feature when importing feathers-prisma.
console.warn
Use "@prisma/client/runtime/library", "@prisma/client/runtime/data-proxy" or "@prisma/client/runtime/binary"
1 | import feathers from "@feathersjs/feathers";
> 2 | import { service } from "feathers-prisma";
| ^
3 | import { PrismaClient } from "../../client";
4 | import { ServiceTypes } from "../declarations";
5 |
at Object.<anonymous> (node_modules/@prisma/client/runtime/index.js:242:2596)
at Object.<anonymous> (node_modules/feathers-prisma/dist/error-handler.js:5:17)
at Object.<anonymous> (node_modules/feathers-prisma/dist/service.js:17:25)
at Object.<anonymous> (node_modules/feathers-prisma/dist/index.js:18:17)
at Object.<anonymous> (services/api/accountability/src/services/getService.ts:2:1)
Actual behavior
When this import is traversed at execution time, it gives the warning:
Use "@prisma/client/runtime/library", "@prisma/client/runtime/data-proxy" or "@prisma/client/runtime/binary"
System configuration
Tell us about the applicable parts of your setup.
Module versions (especially the part that's not working):
Steps to reproduce
Use the import:
With either Prisma 4.11.0 or 4.15.0.
Expected behavior
Should not give any warnings about using a deprecated Prisma feature when importing feathers-prisma.
Actual behavior
When this import is traversed at execution time, it gives the warning:
System configuration
Tell us about the applicable parts of your setup.
Module versions (especially the part that's not working):
NodeJS version: 16.20.2
Operating System: Mac M1
Browser Version: N/A
React Native Version: N/A
Module Loader: npm