Skip to content

How do i run prisma with sqllite in the webcontainerΒ #1653

@justindressler

Description

@justindressler

Describe the bug

I need sqlite for a project im building using prisma how is this possible i get the following error during prima generate

prisma generate

prisma:warn Prisma failed to detect the libssl/openssl version to use, and may not work as expected. Defaulting to "openssl-1.1.x".
Please manually install OpenSSL and try installing Prisma again.
prisma:warn Prisma doesn't know which engines to download for the Linux distro "". Falling back to Prisma engines built "debian".
Please report your experience by creating an issue at https://github.com/prisma/prisma/issues so we can add your distro to the list of known supported distros.

Downloading Prisma engines for Node-API for debian-openssl-1.1.x [ ] 0%Error: request to https://binaries.prisma.sh/all_commits/5a9203d0590c951969e85a7d07215503f4672eb9/debian-openssl-1.1.x/schema-engine.gz.sha256 failed, reason: socket hang up
npm ERR! code 1
npm ERR! path /home/projects/sb1-idralg
npm ERR! command failed
npm ERR! command sh -c prisma generate

npm ERR! A complete log of this run can be found in: /home/.npm/_logs/2024-12-05T01_48_35_826Z-debug-0.log

Link to the blitz that caused the error

https://stackblitz.com/edit/sb1-idralg?file=.vscode%2Fsnippets.json

Steps to reproduce

just run npx prisma generate && npx prisma db push

Expected behavior

should run local instance of sqlite with orm from prisma or maybe grizzle if possible

Parity with Local

Screenshots

No response

Platform

Browser name  = Chrome
Full version  = 131.0.0.0
Major version = 131
navigator.appName = Netscape
navigator.userAgent = Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0
performance.memory = {
  "totalJSHeapSize": 71756475,
  "usedJSHeapSize": 66501455,
  "jsHeapSizeLimit": 4294705152
}
Hash = fc837ba8

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions