Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

examples/bare-node not working #1912

Open
nite opened this issue Nov 6, 2024 · 0 comments
Open

examples/bare-node not working #1912

nite opened this issue Nov 6, 2024 · 0 comments

Comments

@nite
Copy link

nite commented Nov 6, 2024

What happens?

The examples/bare-node example isnt working with node 22/23

To Reproduce

Change the Worker import to

const { Worker } = require('worker_threads');

and run

 node .\node-duckdb.js
TypeError: this._worker.addEventListener is not a function
    at f.attach (...@duckdb\duckdb-wasm\dist\duckdb-node.cjs:1:13364)
    at new f (...\@duckdb\duckdb-wasm\dist\duckdb-node.cjs:1:13283)
    at ...node-duckdb.js:21:20

Browser/Environment:

node 22/23

Device:

windows (also tried ubuntu)

DuckDB-Wasm Version:

1.29.0

DuckDB-Wasm Deployment:

node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant