typescript-eslint/tslint-to-eslint-config

Cannot find module 'node:os'

alukach opened this issue ยท 3 comments

๐Ÿ› Bug Report

  • tslint-to-eslint-config version: 2.12.2
  • ESLint version: 8.10.0
  • Node version: 14.17.3

Actual Behavior

โžค npx tslint-to-eslint-config
npx: installed 64 in 3.749s
Cannot find module 'node:os'
Require stack:
- /Users/alukach/.npm/_npx/251/lib/node_modules/tslint-to-eslint-config/src/cli/runCli.js
- /Users/alukach/.npm/_npx/251/lib/node_modules/tslint-to-eslint-config/src/cli/main.js
- /Users/alukach/.npm/_npx/251/lib/node_modules/tslint-to-eslint-config/bin/tslint-to-eslint-config

Expected Behavior

Conversion to work.

Reproduction

I'm assuming this is due to #1365

Running the following unblocked me:

npx tslint-to-eslint-config@2.11.0

Ah, TIL that node:os isn't supported in Node <16. Thanks for this @alukach! I'll release a patch version shortly that fixes this import.

The fix should be released in tslint-to-eslint-config@2.12.3 ๐Ÿ‘ . Please let me know if not!