The modern import attribute syntax import ... with support only landed in typescript 5.3.
import ... with
Update the typescript version to use the new import syntax:
npm install --save-dev [email protected]