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

Unhappy TypeScript when using compilerOptions: module: Node16 || NodeNext #2204

Closed
1 task done
DanNisenson opened this issue Mar 5, 2024 · 1 comment
Closed
1 task done

Comments

@DanNisenson
Copy link

Is there an existing issue for this?

  • I've searched for any related issues and avoided creating a duplicate issue.

Description

If tsconfig.json is set as below, subsequent error is thrown.

{
    "compilerOptions": {
        "module": "NodeNext",
}

Could not find a declaration file for module 'ws'. 'xxx/xxx/xxx/node_modules/ws/index.js' implicitly has an 'any' type.

@types/ws are installed in the project

ws version

8.16.0

Node.js Version

20.9.0

System

OS: macOS 12.5.1
CPU: (8) arm64 Apple M1
Memory: 61.89 MB / 8.00 GB
Shell: 5.8.1 - /bin/zsh

Expected result

No response

Actual result

No response

Attachments

No response

@lpinca
Copy link
Member

lpinca commented Mar 5, 2024

There are no TypeScript type definitions in this repository. You might want to open an issue here https://github.com/DefinitelyTyped/DefinitelyTyped.

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

2 participants