Skip to content

typescript error when using pnpm & turborepo #286

@adrian-at-stink

Description

@adrian-at-stink

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions