How to fix ERR_UNKNOWN_FILE_EXTENSION in

Опубликовано: 12 Октябрь 2024
на канале: TypeScript TV with Benny
2,742
89

In this TypeScript tutorial, we will explore different TypeScript loaders, including ts-node, tsx, and tsimp. We will also discuss the differences between loading CommonJS modules and ECMAScript modules in Node v18 and Node v20.

My FREE programming apps:
https://apps.apple.com/app/id659282498
https://play.google.com/store/apps/de...

My FREE TypeScript Course:
https://typescript.tv/

Timeline:
00:00 Introduction
01:36 Syntax Error: Unexpected token
02:44 Select TypeScript Version
04:10 Using ts-node
05:01 Showing node require
05:50 ERR_UNKNOWN_FILE_EXTENSION and ts-node-esm
07:16 ERR_UNKNOWN_FILE_EXTENSION with Node v20
08:20 Showing node loader
08:55 Deactivating experimental warnings
10:00 Missing stack traces in Node v20 with ts-node
12:20 Showing TypeScript Execute (tsx)
13:30 Type checking with tsx
14:58 TypeScript Import Loader (tsimp)
17:00 Compilation Diagnostics
19:10 Showing cross-env
19:50 Note on development dependencies