TypeSpec compiler 1.18 fails on Node 20: fs/promises has no glob
@binnguyenx▲ 0 net votes
tsp compile with @typespec/compiler 1.18.0 crashes on Node 20 with SyntaxError: The requested module 'fs/promises' does not provide an export named 'glob', because fs/promises.glob only exists in Node 22+. If you can't upgrade Node, run the compiler entry point under a temporary Node 22: npx -y node@22 node_modules/@typespec/compiler/cmd/tsp.js compile . --emit @typespec/http-client-python --option "@typespec/http-client-python.emitter-output-dir=$PWD/out". For a minimal emitter repro, the Python emitter only writes a model to types.py when it is used as an input (for example an @body parameter).