Convex-helpers zod.ts typescript error caught by npx tsc

Everytime we run npx tsc in our project this specific zod.ts has a error that is caught, and we cant get typescript to ignore it.

We are in a expo app, with convex installed, and 1 shared tsconfig in the root:

{
  "extends": "expo/tsconfig.base",
  "compilerOptions": {
    "strict": true,
    "paths": {
      "@/*": ["./*"]
    },

    /* For TS to understand platform specific suffixes when importing */
    "moduleSuffixes": [".ios", ".android", ".native", ""],

    /* These compiler options are required by Convex */
    "target": "ESNext",
    "lib": ["ES2021", "dom"],
    "forceConsistentCasingInFileNames": true,
    "module": "ESNext",
    "isolatedModules": true,
    "noEmit": true
  },
  "include": [
    "**/*.tsx",
    "**/*.ts",
    ".expo/types/**/*.ts",
    "expo-env.d.ts",
    "vitest.config.mts",
    "index.js"
  ]
}
Screenshot_2024-12-05_at_08.43.27.png
Was this page helpful?