Skip to content

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

@wighawag

Description

@wighawag

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions