Open
Description
I'm a bit at a loss. So apparently, @github/local-action
doesn't include any transpiled bundle and relies on type-stripping to run(?). But that doesn't work in Node.js right now, since it refuses to do type-stripping in a node_modules/
folder, which will be where any third-party package ends up living.
This affects both installations via npm i -g
and invocations via npx
.
Therefore, when installing the package as advertised in the documentation and running it on a fairly recent MacOS with node v23.10, the following occurs:
$ local-action --help
node:internal/modules/typescript:170
throw new ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING(filename);
^
Error [ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING]: Stripping types is currently unsupported for files under node_modules, for "/opt/homebrew/lib/node_modules/@github/local-action/src/bootstrap.ts"
at stripTypeScriptModuleTypes (node:internal/modules/typescript:170:11)
at Module._compile (node:internal/modules/cjs/loader:1686:15)
at Object.loadTS [as .ts] (node:internal/modules/cjs/loader:1826:10)
at Module.load (node:internal/modules/cjs/loader:1469:32)
at Function._load (node:internal/modules/cjs/loader:1286:12)
at TracingChannel.traceSync (node:diagnostics_channel:322:14)
at wrapModuleLoad (node:internal/modules/cjs/loader:235:24)
at Module.require (node:internal/modules/cjs/loader:1491:12)
at node:internal/modules/cjs/loader:2049:12
at loadPreloadModules (node:internal/process/pre_execution:663:5) {
code: 'ERR_UNSUPPORTED_NODE_MODULES_TYPE_STRIPPING'
}
Node.js v23.10.0
Am I missing something, or is this a bug? Given there are no JavaScript sources for the bootstrap script, how is this supposed to work with Node versions without type stripping support?
Metadata
Metadata
Assignees
Labels
No labels