Unknown error in SQLite Connector migrating from Prisma 3.x to 4.0.0 on ARM/M1 machines #14057
Labels
bug/2-confirmed
Bug has been reproduced and confirmed.
kind/bug
A reported bug.
team/client
Issue for team Client.
tech/engines
Issue for tech Engines.
topic: macos
Milestone
Bug description
Migrating an SQLite project from Prisma
3. x
to4.00
results in an unknown error, causing the node process to terminate, without throwing any exceptions.The error occurs whenever one tries to run any operation on the SQLite database through Prisma. Note that it only seems to affect M1 machines. I could not reproduce the bug on a Ubuntu 18.04 machine.
How to reproduce
README.md
Expected behavior
Prisma should work as expected after migrating to v4 without any issues.
Actual Behavior:
An unknown issue terminates the node process, without any stack trace or bugs.
Logs in debug mode:
Workaround:
Clearing the
node_modules
folder before installing prisma version4.0.0
resolves the problem. So one can use the following command to fix the problem:rm -rf node_modules && npm i
.Prisma information
Prisma Schema and client information are available in the reproduction repo.
Environment & setup
Prisma Version
Internal
https://prisma-company.slack.com/archives/C02FZENHD4N/p1656507178534199
The text was updated successfully, but these errors were encountered: