i think i found the error.
Stripe docs mention that works on node 12 or greater but in order to fix it i have to run:
npm install @types/node@18 --save-dev
in my package.json the @types/node was:
"@types/node": "^16.0.0"
.
a soon as i run the command the project start with no errors