Skip to content

TypeError: (0 , glob_1.default) is not a functionΒ #1817

Closed
@andreidiaconescu

Description

@andreidiaconescu

πŸ› Bug Report

  • tslint-to-eslint-config version: 2.14.1
  • ESLint version: 8.54.0
  • Node version: 20.9.0

Actual Behavior

sudo npx tslint-to-eslint-config --comments

and i get the output including error

✨ 114 rules replaced with their ESLint equivalents. ✨

❗ 7 ESLint rules behave differently from their TSLint counterparts ❗
  Check ./tslint-to-eslint-config.log for details.
❌ 1 error running tslint-to-eslint: ❌
  TypeError: (0 , glob_1.default) is not a function
    at /mnt/otherLinuxPartition/var/www/kickstart/api/node_modules/tslint-to-eslint-config/src/adapters/globAsync.js:10:28
    at new Promise (<anonymous>:null:null)
    at globAsync (/mnt/otherLinuxPartition/var/www/kickstart/api/node_modules/tslint-to-eslint-config/src/adapters/globAsync.js:9:12)
    at Array.map (<anonymous>:null:null)
    at extractGlobPaths (/mnt/otherLinuxPartition/var/www/kickstart/api/node_modules/tslint-to-eslint-config/src/converters/comments/extractGlobPaths.js:11:102)
    at convertComments (/mnt/otherLinuxPartition/var/www/kickstart/api/node_modules/tslint-to-eslint-config/src/converters/comments/convertComments.js:28:49)
    at tryConvertConfig (/mnt/otherLinuxPartition/var/www/kickstart/api/node_modules/tslint-to-eslint-config/src/cli/runCli.js:64:18)
    at runCli (/mnt/otherLinuxPartition/var/www/kickstart/api/node_modules/tslint-to-eslint-config/src/cli/runCli.js:50:24)
    at Object.main (/mnt/otherLinuxPartition/var/www/kickstart/api/node_modules/tslint-to-eslint-config/src/cli/main.js:11:30)
  • the code comments are not actually modified
  • i got stuck

Expected Behavior

The command
sudo npx tslint-to-eslint-config --comments
should work and replace tslint comments with eslint comments.

Reproduction

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: accepting prsPlease, send in a PR to resolve this! ✨type: bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions