NeonN
Neon2y ago
2 replies
worthy-azure

@neondatabase/api-client@1.10.1 breaking GitHub CI

It looks like this package was just published an hour ago and we're seeing the following error:

file:///opt/hostedtoolcache/node/20.16.0/x64/lib/node_modules/neonctl/commands/branches.js:1
import { EndpointType } from '@neondatabase/api-client';
         ^^^^^^^^^^^^
SyntaxError: Named export 'EndpointType' not found. The requested module '@neondatabase/api-client' is a CommonJS module, which may not support all module.exports as named exports.
CommonJS modules can always be imported via the default export, for example using:
import pkg from '@neondatabase/api-client';
const { EndpointType } = pkg;
    at ModuleJob._instantiate (node:internal/modules/esm/module_job:134:21)
    at async ModuleJob.run (node:internal/modules/esm/module_job:217:5)
    at async ModuleLoader.import (node:internal/modules/esm/loader:316:24)
    at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:123:5)
Node.js v20.16.0
ERROR: didn't get the branch id


We are using the neondatabase/create-branch-action@v5 action which in turn uses neonctl@1.34.0 and that uses @neondatabase/api-client@^1.10.0.
Was this page helpful?