Skip to content

Can't resolve duckdb #257

@Montmorency

Description

@Montmorency

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

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