Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find type definition file for 'tedious' The file is in the program because: Entry point for implicit type library 'tedious' #1677

Open
alexneo2003 opened this issue Feb 11, 2025 · 0 comments

Comments

@alexneo2003
Copy link

Software versions

  • "mssql": "11.0.1"

Additional Libraries Used and Versions

System:
    OS: macOS 15.2
    CPU: (8) arm64 Apple M3
    Memory: 279.28 MB / 24.00 GB
    Shell: 5.9 - /bin/zsh
  Binaries:
    Node: 20.14.0 - /usr/local/bin/node
    Yarn: 1.22.22 - /usr/local/bin/yarn
    npm: 10.7.0 - /usr/local/bin/npm
    Watchman: 2024.12.02.00 - /usr/local/bin/watchman
  Managers:
    Homebrew: 4.4.15 - /usr/local/bin/brew
    pip3: 24.3.1 - /usr/local/bin/pip3
    RubyGems: 3.0.3.1 - /usr/bin/gem
  Utilities:
    Make: 3.81 - /usr/bin/make
    GCC: 16.0.0 - /usr/bin/gcc
    Git: 2.15.0 - /usr/local/bin/git
    Clang: 16.0.0 - /usr/bin/clang
    Curl: 8.7.1 - /usr/bin/curl
    OpenSSL: 3.4.0 - /usr/local/bin/openssl
  Servers:
    Apache: 2.4.62 - /usr/sbin/apachectl
  Virtualization:
    Docker: 24.0.2 - /usr/local/bin/docker
    Docker Compose: 2.18.1 - /usr/local/bin/docker-compose
  SDKs:
    iOS SDK:
      Platforms: DriverKit 24.2, iOS 18.2, macOS 15.2, tvOS 18.2, visionOS 2.2, watchOS 11.2
  IDEs:
    VSCode: 1.97.0 - /usr/local/bin/code
    Vim: 9.1 - /usr/bin/vim
    Xcode: 16.2/16C5032a - /usr/bin/xcodebuild
  Languages:
    Bash: 3.2.57 - /bin/bash
    Java: 17.0.5 - /usr/bin/javac
    Perl: 5.34.1 - /usr/bin/perl
    Python3: 3.13.1 - /usr/local/bin/python3
    Ruby: 2.6.10 - /usr/bin/ruby
  Databases:
    SQLite: 3.43.2 - /usr/bin/sqlite3
  Browsers:
    Chrome: 133.0.6943.54
    Edge: 132.0.2957.140
    Safari: 18.2

Problem description
I'm using mssql: 11.0.1 package which @types package using "@types/tedious": "*" package - this
@types/tedious package is stubbed
When I try run my lint script

"lint-staged": "npm run format && npm run ts-check && npm run lint",
"ts-check": "tsc --noEmit --skipLibCheck --pretty",

I receive error

error TS2688: Cannot find type definition file for 'tedious'.
  The file is in the program because:
    Entry point for implicit type library 'tedious'

The @types/tedious package is empty

Also my tsconfig.json show me this error to

I fix this by adding

"overrides": {
	"@types/tedious": "4.0.14"
}

into my package.json but it is not the solution of the problem

Expected behavior
All run without any errors

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant