Prisma for Replit?

I tried to run my project, using Prisma, everything was good until I run it.

It throw me an error:
“Error: cannot open shared object file: No such file or directory”

Any solution? Thanks.

1 Like

In this case:

sed -i 's/];/  pkgs.openssl&/' replit.nix

(I think…)

1 Like

Thanks for your help, it did not work, I think I will use sequelize instead

  1. Click Files ⋮ > Show hidden files
  2. Add/change the replit.nix file, before the final }:
env = {
  LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath [ pkgs.openssl_1_1.out ];

NOTE: for newer repls (where your .replit file contains modules), this usually doesn’t work + isn’t recommended. Instead enter in Shell:

nix-editor -hapkgs.openssl.out

(if your .replit file doesn’t contain modules, consider updating your repl’s config to match the latest version of the template your repl is using)


it work!!! thank you so much

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.