medz / prisma-dart

Prisma Client Dart is an auto-generated type-safe ORM. It uses Prisma Engine as the data access layer and is as consistent as possible with the Prisma Client JS/TS APIs.
https://prisma.pub
BSD 3-Clause "New" or "Revised" License
459 stars 31 forks source link

How to handle prisma on windows #414

Open kidusdev opened 3 months ago

kidusdev commented 3 months ago

ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception: Unsupported operation: Unknown platform: windows

this occurs when we run orm_flutter on windows but it works if we only use orm package, so what are the better options to work on both platforms with and without orm_flutter.

medz commented 3 months ago

@kidusdev Flutter integration currently only supports iOS/Android. For Windows I recommend you copy the Prisma binary engine into your project as a submodule. This may involve some native integration.

I am currently busy with job interviews and developing projects for clients. I am sorry that I don’t have time to continue to enhance Flutter integration to support more platforms.