oscklm
oscklm3w ago

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"
]
}
{
"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"
]
}
No description
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?