Open pachico opened 6 months ago
@pachico if this works in Node, then it's a bug in Bun and not in Netlify.
Without reading omit.js
's code, my guess is Bun is respecting __esModule
on omit.js
when converting to ESM, so omit.default
is undefined since that's the equivalent of require("omit.js").default.default
and that would cause the error "omit.default" is not a function
I just ran into this issue and resolved it by installing the latest LTS of Node.js.
I thought that Bun was all I needed.
Describe the bug
When I try to create a client with these lines:
I get the following error
Steps to reproduce
foo.ts
bun add netlify
bun run foo.ts
Configuration
-
Deploy logs