Closed jmakinin closed 10 months ago
I had the same problem, solution from #249 (downgrade prisma in package.json
to below 5.0.0) helped
+1 the same problem
+1 the same problem
this version of prisma worked for me
"dependencies": {
"prisma": "^4.16.2"
}
I have a flutter application that I want to use SQLite database with Prisma ORM based on the prisma-dart package.
Everything seems to work fine until I run the command
dart run build_runner build
then it fails to generate the Dart Prisma client to work with the Prisma generated Client.This is the prisma schema I'm working with for now
on running
npx prisma generate
,the prisma client is successfully generated and expects this file
part 'prisma_client.g.dart';
however when I run
dart run build_runner build
I get the following error:
I have searched online, but it seems there is very little engagement with this stack combination; any help in any form will be very much appreciated. thank you.
System:
Windows 11
$ dart --version Dart SDK version: 3.0.6 (stable) (Tue Jul 11 18:49:07 2023 +0000) on "windows_x64"
$ flutter --version Flutter 3.10.6 • channel stable • https://github.com/flutter/flutter.git Framework • revision f468f3366c (5 weeks ago) • 2023-07-12 15:19:05 -0700 Engine • revision cdbeda788a Tools • Dart 3.0.6 • DevTools 2.23.1
$ node -v v16.16.0
$ npm -v 8.11.0