TS2617

path can only be imported by using import path = require("node:path") or by turning on the esModuleInterop flag and using a default import.

Broken Code ❌

import { path } from 'node:path';

Fixed Code ✔️

import path = require('node:path');