question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Impossible to change generator binaryTargets

See original GitHub issue

Hi,

I tried Prisma 2 on my Ubuntu(Bionic), but the binaryTargets field in generator doesn’t seem to work.

Here’s my setting:

generator photon {
  provider = "photonjs"
  binaryTargets = ["debian-openssl-1.1.x"] 
}

Here is what it says, when I try to use photon.js in my code:

Error: Photon binary for current platform linux-glibc-libssl1.1.0 could not be found.
Photon looked in null but couldn't find it.
Make sure to adjust the generator configuration in the schema.prisma file:
generator photon {
provider      = "photonjs"
binaryTargets = ["native", "debian-openssl-1.1.x"]
}
Please run prisma2 generate for your changes to take effect.
Note, that by providing `native`, Photon automatically resolves `linux-glibc-libssl1.1

Is it possible to replace the native for another value like “debian-openssl-1.1.x” so I don’t get this error? Am I doing it wrong?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:1
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

2reactions
divyenduzcommented, Jan 14, 2020

Sure, please feel free to close this issue and open a new issue for that one. Thanks.

2reactions
divyenduzcommented, Jan 14, 2020

The CLI should warn you if the versions are out of sync. You can bring them to the same version manually via

yarn add -D prisma2
yarn add -D @prisma/photon 
Read more comments on GitHub >

github_iconTop Results From Across the Web

Generators (Reference) - Prisma
A generator determines which assets are created when you run the prisma generate command. The main property provider defines which Prisma Client (language ......
Read more >
node.js - error states Unable to require(node_modules/prisma ...
It seems there is an issue with the version of OpenSSL installed on your machine. You might need to (re)install OpenSSL.
Read more >
How to undo generator actions initiated in error
The obvious solution is to ensure that all changes made by the interrupted generator are automatically removed by teaching the generators to use ......
Read more >
How to Change Oil in the Portable Generator - Elephant Energy
The process has only 8 easy-to-follow steps meaning you can change the oil filter and oil in almost all generators. However, in case...
Read more >
cmake-buildsystem(7) — CMake 3.25.1 Documentation
Dependencies between binary targets are expressed using the ... The BUILD_SHARED_LIBS variable may be enabled to change the behavior of add_library() to ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found