vvakame / commandpost

command line option parser for Node.js

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Typescript error

sergi opened this issue · comments

I am getting the following error:

TypeScript error: node_modules/commandpost/index.d.ts(1,15): Error TS2307: Cannot find module './lib'.

When compiling a project that has indirect dependencies on commandpost. Is it possible to express this path in a different way? I am not sure it is a commandpost issue, but I have no idea of how to get rid of it otherwise.

Which version of tsc do you use?
commandpost is works fine in my project. e.g. https://github.com/vvakame/typescript-formatter
I want to see your project. Is it possible?

I am actually using typescript-formatter in my project (private one, sorry). These are the versions I am using:

├─┬ typescript-formatter@2.2.1
│ ├── commandpost@1.0.0

And using tsify to compile the project, which has the following versions (which includes typescript's tsc version, at 1.8.7):

├─┬ tsify@0.16.0
│ ├── tsconfig@2.2.0
│ └── typescript@1.8.7

umm... please try to add typescript dependency to your devDependencies.

Just did that, same result :/

On 13 July 2016 at 11:59, Masahiro Wakame notifications@github.com wrote:

umm... please try to add typescript dependency to your devDependencies.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#2 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/AAB2vDoqdIPVN_u0mCoYtFP0GQoabqWhks5qVLcZgaJpZM4JJUVA
.