Open jlarmstrongiv opened 10 months ago
Hm, I can use it with
import AWSEdgeLocations from "aws-edge-locations";
// Get AWS Edge Locations
const awsEdgeLocations = new AWSEdgeLocations();
I have released a new version today, can you check if this problem persists on your end?
Unfortunately, the import is still broken in the latest aws-edge-locations@0.5.3
npx esno packages/core/src/logs/jsonHandlerDemo.ts
/Users/user/Desktop/projects/project/packages/core/src/logs/jsonHandler.ts:12
const awsEdgeLocations = new AWSEdgeLocations();
^
TypeError: AWSEdgeLocations is not a constructor
at <anonymous> (/Users/user/Desktop/projects/project/packages/core/src/logs/jsonHandler.ts:12:26)
Node.js v20.11.1
I don’t know if the tsconfig settings are relevant, but I’m using these tsconfigs, which use settings like:
// Properly support importing CJS modules in ESM
"esModuleInterop": true,
Also, just wanted to say a big thank you @tobilg for writing your blog. I was trying to do something similar to your Casual data engineering, or: A poor man's Data Lake in the cloud article for my website, and your idea of using duckdb is brilliant. I would love to learn more about it.
Can you please try again with 0.6.1
?
@tobilg Unfortunately, I tried with the latest version, but still have the same error
The default package import is broken for me. My workaround is
Using named exports usually avoids many of the
default
ormodule.exports =
issues