You need to match the TypeScript version to the the Babylon Version you are building…
So either try update your global typescript:
npm -i g typescript
of run the local npm install in the root of your project like it says in the script compiler section of the exporter panel
npm install