[Preview3]Error when prisma2 generate
See original GitHub issueWhen I run prisma2 generate
, error shows that: Return type of public method from exported class has or is using private name '..............'.
I think I just need the final step to make prisma2 working, please help me with this, I’ll be appreciated. Full error:
root@Dizzy-X-Pro:/mnt/c/Users/dizzy/Codes/tests/prisma2-test# prisma2 generate
Generating Photon JS Client to /mnt/c/Users/dizzy/Codes/tests/prisma2-test/prisma/node_modules/@generated/photon
Errors during Photon generation:
Return type of public method from exported class has or is using private name 'FindOneRelation_UnitArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneAccounting_PaymentArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneBaseInfo_NormalGoodArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneBaseInfo_TyrePatternSpecArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneOrder_ItemArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneOrder_InOrderItemArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneOrder_OutOrderItemArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneRelation_UnitArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneOrder_ItemArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneWH_TyreArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneOrder_ItemArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneRelation_CustomerAddressArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneOrder_InOrderInfoArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneOrder_OutOrderInfoArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneBusiness_ApplicationArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneRelation_CustomerAddressArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneAccounting_PayAndGatheringArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneRelation_LogisticArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneOffice_UserTokenArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneRelation_UnitArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneBaseInfo_PhotoArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneRelation_CustomerAddressArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneRelation_CustomerMoneyPeriodArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneRelation_CustomerQuotaArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneRelation_UnitArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneBaseInfo_BrandArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneBaseInfo_SpecArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneBaseInfo_TyreInfoArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneBaseInfo_FileArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneOrder_OutOrderInfoArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneWH_DeliveryOrderArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneRelation_UnitArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneRelation_UnitArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneBaseInfo_TyrePatternSpecArgsRequired'.
Return type of public method from exported class has or is using private name 'FindOneBaseInfo_TyrePatternSpecArgsRequired'.
Done in 11.86s
Original issue(#266 )
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
"Unexpected token. Expected one of: ." at line 225 #266 - GitHub
It was base on prisma 1.34, introspected by prisma2 init . ... [Preview3]Error when prisma2 generate #274.
Read more >Generating the client (Concepts) - Prisma
This page explains how to generate Prisma Client. It also provides additional context on the generated client, typical workflows and Node.js configuration.
Read more >Getting Started with the Prisma Framework (formerly Prisma 2 ...
Generate the database schema by typing the following in the terminal: $ prisma2 generate. Now we can seed our database with initial values....
Read more >type-graphql/prisma2 - Gitter
Hi All, I am facing an issue with prisma generate after upgrading the prisma client version to 2.9.0 to avoid a bug. But...
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
@timsuchanek Thanks a lot! Inspired by your reply, I found a temporary workaround: Changing all my id field name from
uuid
toid
.@zzyyzz1992 You have exposed your database credentials in the Gist. I will recommend you to delete that gist asap. I have downloaded the datamodel