Skip to content

Loading extensions broken in node #1276

@whscullin

Description

@whscullin

What happens?

Attempting to dynamically load an extension using duckdb-wasm under node fails in a few ways.

Executing the sequence

INSTALL icu
LOAD icu

first fails with

Error: IO Error: Can't find the home directory at '/home/web_user'

setting home_directory to os.homedir(), then gives:

Error [TypeError]: g_.getSocket is not a function

(Simply running LOAD icu tells you to install the extension)

To Reproduce

Executing the sequence

INSTALL icu
LOAD icu

when using duckdb-wasm under node.

Browser/Environment:

node v16.14.2

Device:

MacBook Pro

DuckDB-Wasm Version:

0.8.0

DuckDB-Wasm Deployment:

Malloy

Full Name:

Will Scullin

Affiliation:

Google

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions