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

Could not find declaration file for module "shell-exec" (Typescript) #79

Open
kiran-isaac opened this issue Nov 10, 2023 · 0 comments
Open

Comments

@kiran-isaac
Copy link

Environment:

image

Reproducing:

Setup

Initialize new node repository
npm i kill-port
npm i --save-dev @types/kill-port

index.ts :

import killPort from "kill-port";

tsconfig.json:

{
    "compilerOptions": {
        "module": "commonjs",
        "noImplicitAny": true,
        "removeComments": true,
        "preserveConstEnums": true,
        "esModuleInterop": true,
        "sourceMap": true,
        "lib": [
            "ES2015"
        ],
        "moduleResolution": "node",
        "target": "ES6",
    },
    "files": [
        "index.ts"
    ]
}

Run: tsc

Output

image

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