Development
Cannot use import statement outside a module: 30-Second Diagnostic Chart + Fix Runbook
Pinpoint Cannot use import statement outside a module, ERR_REQUIRE_ESM, and require is not defined in 30 seconds with a diagnostic chart, then fix them with copy-paste snippets. A practical runbook covering package.json type through ts-node