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.

[Preview3]Error when prisma2 generate

See original GitHub issue

When 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:closed
  • Created 4 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
zzyyzz1992commented, Jul 30, 2019

@timsuchanek Thanks a lot! Inspired by your reply, I found a temporary workaround: Changing all my id field name from uuid to id.

1reaction
pantharshit00commented, Jul 29, 2019

@zzyyzz1992 You have exposed your database credentials in the Gist. I will recommend you to delete that gist asap. I have downloaded the datamodel

Read more comments on GitHub >

github_iconTop 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 >
Prisma Client Python
An auto-generated and fully type-safe database client.
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 >

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