TS2632

error TS2632: Cannot assign to path because it is an import.

Broken Code ❌

1
2
3
import path from 'node:path';

path = {};

Fixed Code ✔️

1
const path = {};