#1389·zx

[Bug]: TypeError: $(...) is not a function

Author: wighawagCreated Jan 24, 2026Updated Feb 22, 2026
Labelsbug

What happened?

I got this when I execute zx --verbose TEST.md

TypeError: $(...) is not a function
    at file:///home/wighawag/dev/github/wighawag/template-ethereum-contracts/TEST.md.mjs:18:3
    at ModuleJob.run (node:internal/modules/esm/module_job:377:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:671:26)

with the following README.md

(NOTE: i needed use backslash to escape the back ticks to show the readme here)

# h1

paragraph

## h2

### h3

\`\`\`bash
echo "1"
\`\`\`

### h3

- item 1


  \`\`\`bash
  echo "2"
  \`\`\`


### h3

\`\`\`bash
echo "4"
\`\`\`

How it should work?

I expect to work fine,

How to reproduce the bug?

see above markdown file

Version

8.8.5

What's OS kind?

Linux

What JS runtime is used?

Node.js

Runtime Version

24.11.1

Error stack / relevant log output

TypeError: $(...) is not a function
    at file:///home/wighawag/dev/github/wighawag/template-ethereum-contracts/TEST.md.mjs:18:3
    at ModuleJob.run (node:internal/modules/esm/module_job:377:25)
    at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:671:26)

Code of Conduct

  • I agree to follow this project's Code of Conduct