Breadcrumbs ts-node-dev-esm-test / main.ts Latest commit puchm Initial commit 1d4e203· May 24, 2021 HistoryHistory File metadata and controls Code Blame 3 lines (2 loc) · 105 Bytes Raw import cryptoRandomString from 'crypto-random-string'; console.log(cryptoRandomString({ length: 10 ...
puchm/ts-node-dev-esm-testPublic NotificationsYou must be signed in to change notification settings Fork0 Star0 starsforks NotificationsYou must be signed in to change notification settings Code Issues Pull requests Actions Projects Security
I'm trying to run ts-node-dev --experimental-specifier-resolution=node --esm --transpile-only src/index.ts I'm getting this message bad option: --esm ts-node-dev/src/bin.ts Line 11 in 32bdc92 const tsNodeFlags = {
1. Specify intsconfig.jsonthat thets-nodeuses ESM loader {"ts-node": {"esm":true} } In this case, you don't need to specify additional arguments in nodemon command: nodemon src/index.ts 2. Specify thets-nodecommand with ESM in nodemon: ...
Issue description I am looking at porting some projects to ESM and I don't know what I am doing wrong. This is the full error: (node:10732) Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension...
How to tell ts-node-dev to ignore and not transpile js files? #313 openedMay 27, 2022byjsoneaday Addesmtots-nodeflags #312 openedMay 27, 2022byricardo-valero 11 ts-node-dev 1.1.8 is broken with TypeScript 4.7 #311 openedMay 25, 2022byghost91- ...
"esm":"^3.2.22", "fs-extra":"^9.0.1", "mocha":"^8.1.1", "tap":"^5.2.0", "tape":"^5.0.1", "touch":"^1.0.0", "ts-nameof":"^5.0.0", "tsconfig-paths":"^3.3.1", "ttypescript":"^1.5.10", "typescript":"^3.9.5" ...
esm@^3.2.22: version "3.2.22" resolved "https://registry.yarnpkg.com/esm/-/esm-3.2.22.tgz#5062c2e22fee3ccfee4e8f20da768330da90d6e3" integrity sha512-z8YG7U44L82j1XrdEJcqZOLUnjxco8pO453gKOlaMD1/md1n/5QrscAmYG+oKUspsmDLuBFZrpbxI6aQ67yRxA== espree@^3.1.6: version "3.4....
wclr committed Sep 21, 2020 Verified a100705 Commits on Sep 17, 2020 Add cache-directory to string flags … Alex Carp committed Sep 17, 2020 36f0be0 Commits on Sep 11, 2020 clean up test and add -r esm test wclr committed Sep 11, 2020 539631a Commits on Sep 5, 2020...
ts-node-dev --project tsconfig.ts-node-dev.json ...etc It's okay, but not ideal I've been usingnode --watch --experimental-specifier-resolution=node --loader ts-node/esm main.tsand EsNext in both module and target in tsconfig.json. Maybe it helps you....