You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! I am facing serverless invocation issue. Appreciate any help!
Followed this link for deployment and getting the below error.
Error: PrismaClientInitializationError: Prisma Client could not find its schema.prisma. This is likely caused by a bundling step, which leads to schema.prisma not being copied near the resulting bundle. We would appreciate if you could take the time to share some information with us
Zip file contents snippet
Archive: .serverless/dev-project.zip
Length Date Time Name
--------- ---------- ----- ----
411 01-01-1980 00:00 prisma/schema.prisma
Code to initialize the client as below. This uses the datasources parameter.
I ran into a similar issue - not with the serverless-webpack plugin but with my own webpack config. I solved it and documented the solution here in case this helps: prisma/prisma#19351 (comment)
Hello! I am facing serverless invocation issue. Appreciate any help!
Followed this link for deployment and getting the below error.
Error: PrismaClientInitializationError: Prisma Client could not find its
schema.prisma
. This is likely caused by a bundling step, which leads toschema.prisma
not being copied near the resulting bundle. We would appreciate if you could take the time to share some information with usZip file contents snippet
Code to initialize the client as below. This uses the
datasources
parameter.I am using webpack in my project. I am able to get it to work if i am not using webpack.
Here is the configuration that does not work.
plugins:
custom:
webpack:
includeModules: true
Here is the output from sls package
The text was updated successfully, but these errors were encountered: