Open ehassaan opened 2 months ago
Workaround:
Added dependencies even though I hate it,
"aws-sdk": "^2.1685.0",
"mock-aws-s3": "^4.0.2",
"nock": "^13.5.5",
"binary": {
"module_name": "duckdb",
"module_path": "./lib/binding/",
"host": "https://npm.duckdb.org/duckdb"
},
npx node-pre-gyp install --directory ./node_modules/duckdb --target_platform=$platform --target_arch=$arch --update-binary
New-Item -Force -ItemType Directory ./lib/binding
Copy-Item -Force -Recurse ./node_modules/duckdb/lib/binding/duckdb.node ./lib/binding/
I am trying to build duckdb based nodejs project using rollup but I get unresolved dependencies error for libraries,
mock-aws-s3, aws-sdk, and nock
Same issue described here, mapbox/node-pre-gyp#661
When adding these dependencies in my package.json, I get below error at runtime,
Below is my rollup config,