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

typescript error when using pnpm & turborepo #286

Open
2 tasks done
adrian-at-stink opened this issue May 2, 2024 · 1 comment
Open
2 tasks done

typescript error when using pnpm & turborepo #286

adrian-at-stink opened this issue May 2, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@adrian-at-stink
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Code of Conduct

  • I agree to follow this project's Code of Conduct

Code Sandbox link

No response

Bug report

I'm currently trying out groqd but getting a typescript error below

The inferred type of 'runQuery' cannot be named without a reference to 'groqd/node_modules/zod'. This is likely not portable. A type annotation is necessary.

The code is the same as in the examples:

export const runQuery = makeSafeQueryRunner(
  (query: string, params: Record<string, number | string> = {}) =>
    client.fetch(query, params)

As mentioned in the title, i'm running pnpm and turborepo with a nextjs (14.1.4) app
@adrian-at-stink adrian-at-stink added the bug Something isn't working label May 2, 2024
@adrian-at-stink
Copy link
Author

just an update, was looking at microsoft/TypeScript#47663

and added "declaration": false to the nextjs tsconfig.json

i have shared configs which "declaration": true was set.

not sure what knock on effect this may have

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant