TS1450
Dynamic imports can only accept a module specifier and an optional set of attributes as arguments.
Broken Code ❌
const Codeowners = import('codeowners');This error occurs because the TypeScript compiler expects a dynamic import as the imported module is assigned to a constant.
Fixed Code ✔️
To fix this error, use an import statement to indicate to the compiler that a module is being imported:
import Codeowners from 'codeowners';