Skip to content

Failed to execute 'structuredClone' on prepared vector #25

Description

@rajsite

Trying to use the preparePostMessage and rehydrateVector helpers on the README example I get the error message:

Uncaught DOMException: Failed to execute 'structuredClone' on 'Window': (index) => isChunkedValid(unchunkedData, index) could not be cloned.

See stackblitz example: https://stackblitz.com/edit/geoarrow-readme-worker-example?file=src%2Fmain.ts&terminal=dev
And open devtools to see the error.

npm list:

+-- @esbuild/linux-x64@0.19.12 extraneous
+-- @geoarrow/geoarrow-js@0.3.0
+-- @rollup/rollup-linux-x64-gnu@4.12.0 extraneous
+-- @rollup/rollup-linux-x64-musl@4.12.0 extraneous
+-- apache-arrow@15.0.0
+-- typescript@5.3.3
`-- vite@5.1.3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions