CJCC
Convex Community2y ago
1 reply
CJC

I recently switched to Convex-ents and have TS errors

node_modules/convex-ents/dist/schema.d.ts:261:41 - error TS1109: Expression expected.

261     deletion(type: "scheduled", options?: {
                                            ~

node_modules/convex-ents/dist/schema.d.ts:262:24 - error TS1005: ',' expected.

262         delayMs: number;
                           ~

node_modules/convex-ents/dist/schema.d.ts:263:7 - error TS1005: ';' expected.

263     }): EntDefinition<Document & {
          ~

node_modules/convex-ents/dist/schema.d.ts:266:1 - error TS1128: Declaration or statement expected.

266 }
    ~


Found 81 errors in the same file, starting at: node_modules/convex-ents/dist/schema.d.ts:70



Here is my tsconfig

{
    "compilerOptions": {
        "allowJs": true,
        "allowUnreachableCode": false,
        "allowUnusedLabels": false,
        "declaration": true,
        "esModuleInterop": true,
        "forceConsistentCasingInFileNames": true,
        "isolatedModules": true,
        "jsx": "preserve",
        "lib": ["dom", "dom.iterable", "esnext", "DOM"],
        "module": "esnext",
        "moduleResolution": "node",
        "noEmit": true,
        "noFallthroughCasesInSwitch": true,
        "noImplicitReturns": true,
        "pretty": true,
        "resolveJsonModule": true,
        "skipLibCheck": true,
        "sourceMap": true,
        "strict": true,
        "target": "es2018",
        "incremental": true,
        "paths": {
            "@/*": ["./*"]
        }
    },
    "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".graphqlrc.ts", ".graphql-codegen,json"],
    "exclude": ["node_modules/*"]
}


Any ideas what the issue is?
Was this page helpful?