Impossible to change generator binaryTargets
See original GitHub issueHi,
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:
- Created 4 years ago
- Reactions:1
- Comments:7 (5 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Sure, please feel free to close this issue and open a new issue for that one. Thanks.
The CLI should warn you if the versions are out of sync. You can bring them to the same version manually via