Justin
PPrisma
•Created by Justin on 5/16/2025 in #help-and-questions
The requested module '@prisma/generator-helper' does not provide an export named 'generatorHandler'
Hi there! I am trying to write a custom generator but cannot get past the error above. It looks like prisma.schema is properly configured to call the generator but once inside the file where it is defined, an immediate
The requested module '@prisma/generator-helper' does not provide an export named 'generatorHandler'
is thrown.
VSCode takes me to the type declaration for generatorHandler when ctrl+clicking the import so VSCode at least recognizes it.
It looks like the @prisma/generator-helper package is deprecated in favor of @prisma/generator but examples using the new package appear to be non-existent . I have tried following along with the prisma-client-js code to replicate it but it looks pretty involved and I cannot seem to work it down to a minimum workable solution.
Thanks in advance for any help!3 replies