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

TypeScript: Could not find a declaration file for module 'node-pty' #82

Closed
ForNeVeR opened this issue May 20, 2017 · 0 comments
Closed
Milestone

Comments

@ForNeVeR
Copy link
Contributor

ForNeVeR commented May 20, 2017

Consider that I've installed the library via npm install --save node-pty to my current project, and trying to import it into main.ts file like that:

// main.ts
import * as pty from "node-pty";

When compiling this file, I get the error:

Could not find a declaration file for module 'node-pty'

Actually, that's a distribution issue: according to the official TypeScript Publishing guide, you need to define a "types" property in your package.json (and probably point that to "./lib/index.d.ts").

ForNeVeR added a commit to ForNeVeR/node-pty that referenced this issue May 20, 2017
@Tyriar Tyriar added this to the 0.6.6 milestone May 22, 2017
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