The error TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" occurs when you try to run a TypeScript file (.ts) directly using Node.js, which does not understand TypeScript syntax by default. Node.js runs JavaScript, not TypeScript
npm install ts-node typescript --save-dev
npx ts-node /app/src/App.ts
Watch video TypeError [ERR_UNKNOWN_FILE_EXTENSION]: Unknown file extension ".ts" for /app/src/App.ts typescript online without registration, duration hours minute second in high quality. This video was added by user Tech Nursery 10 September 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,295 once and liked it 6 people.