toeverything / blocksuite

🧩 Content editing tech stack for the web - BlockSuite is a toolkit for building editors and collaborative applications.
https://blocksuite.io
Mozilla Public License 2.0
4.11k stars 358 forks source link

ZodError: Expected number, received nan #7487

Open sentry-io[bot] opened 2 weeks ago

sentry-io[bot] commented 2 weeks ago

Sentry Issue: AFFINE-6JF

ZodError: [
  {
    "code": "invalid_type",
    "expected": "number",
    "received": "nan",
    "path": [
      "x"
    ],
    "message": "Expected number, received nan"
  },
  {
    "code": "invalid_type",
    "expected": "number",
    "received": "nan",
   ...
  at new ZodError (webpack://@affine/web/../../../node_modules/zod/lib/index.mjs:164:9)
  at get error (webpack://@affine/web/../../../node_modules/zod/lib/index.mjs:587:31)
  at ZodType.parse (webpack://@affine/web/../../../node_modules/zod/lib/index.mjs:691:31)
  at CursorSelection.fromJSON (webpack://@affine/web/../../../node_modules/@blocksuite/block-std/src/selection/variants/cursor.ts:42:27)
  at this._jsonToSelection (webpack://@affine/web/../../../node_modules/@blocksuite/block-std/src/selection/manager.ts:81:17)
...
(7 additional frame(s) were not displayed)