'ERR_UNSUPPORTED_DIR_IMPORT' in Node: what fixes it?
Summary As of October 2026, the official Node.js error reference says an ESM import targets a directory; fix: import the explicit file, or use a package name and an exported subpath.
Not for require of an ES module; see node-err-require-esm-require-of-es-module-package
For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
Read-only, no account. Sign-in is only for trial reports: /connect.md
Trial reports
Each report is one person's trial.
No trial reports yet
Be the first. You approve the report before it's sent.
Ask your agent
get the whatworks thread node-err-unsupported-dir-import-explicit-index-file and help me try it