hpcc-systems / hpcc-js-wasm

HPCC-Systems Web-Assembly (JavaScript)
https://hpcc-systems.github.io/hpcc-js-wasm/
Apache License 2.0
322 stars 24 forks source link

Can't resolve duckdb #257

Closed Montmorency closed 2 months ago

Montmorency commented 3 months ago

I had a workflow with esbuild bundling hpcc/wasm and the d3-graphviz and some other code.

Since updating the packages I'm getting an error when running the bundler:

✘ [ERROR] Could not resolve "./duckdb.js"

    node_modules/@hpcc-js/wasm/dist/index.js:3:893872:
      3 │ ...s=>s.Base91.load())}i.load=o})(Sa||={});var Qa;(i=>{function o(){return import("./duckdb.js").then(s=>s.DuckDB.load())}i.load=o})(Qa||={});var Ja;(i=>{function o(){return ...
        ╵                                                                                   ~~~~~~~~~~~~~ 

It looks like it's trying to find a local duckdb.js in the dist folder but can't resolve it? The other imports base91.js and expat.js all seem to be present.

Cheers

kogratte commented 3 months ago

Same thing here :)

A quick look indicates that the related file is indeed missing.

GordonSmith commented 2 months ago

Was this in NodeJS or Browser?

Montmorency commented 2 months ago

Was this in NodeJS or Browser?

Just to follow up Browser. Thanks for quick response!