fawwazF
Convex Community3y ago
2 replies
fawwaz

ReferenceError: structuredClone is not defined

Seems I can't use structuredClone inside convex, but according to my convex tsconfig, there shouldn't be a problem, right?

{
  /* This TypeScript project config describes the environment that
   * Convex functions run in and is used to typecheck them.
   * You can modify it, but some settings required to use Convex.
   */
  "compilerOptions": {
    /* These settings are not required by Convex and can be modified. */
    "allowJs": true,
    "strict": true,

    /* These compiler options are required by Convex */
    "target": "ESNext",
    "lib": ["ES2021", "dom"],
    "forceConsistentCasingInFileNames": true,
    "allowSyntheticDefaultImports": true,
    "module": "ESNext",
    "moduleResolution": "Node",
    "isolatedModules": true,
    "noEmit": true,
    "paths": {
      "@domainLayer/*": ["../src/domain-layer/*"],
      "@/*": ["../src/*"],
      "@convex/*": ["./*"]
    }
  },
  "include": ["./**/*", "../src/components/email"],
  "exclude": ["./_generated"]
}
Was this page helpful?