TS2617
pathcan only be imported by usingimport path = require("node:path")or by turning on theesModuleInteropflag and using a default import.
Broken Code ❌
import { path } from 'node:path';Fixed Code ✔️
import path = require('node:path');
pathcan only be imported by usingimport path = require("node:path")or by turning on theesModuleInteropflag and using a default import.
import { path } from 'node:path';import path = require('node:path');