Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Date Scalar not working #552

Closed
cyrus-za opened this issue Oct 14, 2020 · 2 comments
Closed

Date Scalar not working #552

cyrus-za opened this issue Oct 14, 2020 · 2 comments

Comments

@cyrus-za
Copy link

Repo to reproduce:
https://github.com/cyrus-za/prisma-nexus-date-error

    return new TSError(diagnosticText, diagnosticCodes)
           ^
TSError: ⨯ Unable to compile TypeScript:
User.ts:7:7 - error TS2339: Property 'date' does not exist on type 'ObjectDefinitionBlock<"User">'.

     t.date('createdAt', {
@AhmedElywa
Copy link

AhmedElywa commented Oct 14, 2020

your issue in running command tries with this yarn ts-node --transpile-only index.ts
you missed --transpile-only, so when you start your command date not exist, so the compiler failed

@cyrus-za
Copy link
Author

Thanks that solves it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants